see here for his demo of the issue: https://www.youtube.com/watch?v=fAYhE389BbM
He suggests calling a "patch" function to force cleanup, but that doesn't seem to help much in my case.
Any suggestions to handle this in a more elegant way?
Explore... Chat... Share...
Moderator: Sprite_tm
Con req, conn=0x3fff4d80, pool slot 0
URL = /wifi/connect.cgi
Mallocced buffer for 54 bytes of post data.
Post data: essid=Baliteam&passwd=password&connect=Connect%21
Is url index 9
findArg: essid=Baliteam&passwd=password&connect=Connect%21
findArg: val Baliteam&passwd=password&connect=Connect%21 len 8
findArg: essid=Baliteam&passwd=password&connect=Connect%21
findArg: passwd=password&connect=Connect%21
findArg: val password&connect=Connect%21 len 13
Conn 0x3fff4d80 is done. Closing.
Con req, conn=0x3fff50e0, pool slot 0
URL = /wifi
Is url index 5
Conn 0x3fff50e0 is done. Closing.
Con req, conn=0x3fff5a70, pool slot 0
URL = /wifi/wifi.tpl
Is url index 8
Heatshrink compressed file; decode parms = b4
Con req, conn=0x3fff5c70, pool slot 1
URL = /wifi/style.css
Is url index 10
Heatshrink compressed file; decode parms = b4
Con req, conn=0x3fff5d90, pool slot 2
URL = /wifi/140medley.min.js
Is url index 10
Heatshrink compressed file; decode parms = b4
Conn 0x3fff5c70 is done. Closing.
Conn 0x3fff5d90 is done. Closing.
Con req, conn=0x3fff4d80, pool slot 1
URL = /wifi/wifiscan.cgi
Is url index 7
STA status = 0. Disconnecting STA...
Conn 0x3fff4d80 is done. Closing.
Sprite_tm wrote:dnts wrote:How to save the ST SSID and password into the flash as they get reset to MYAP default on every power cycle (let alone re-flashing). I think I've traced the mode changing function wifi_set_opmode to user_interface.h which exposes some of the library commands so the mode itself is persistent but SSID and password are not.
You mean the SSID and password of the AP it connects to in STA mode? It should save that, at least, last time I checked the SDK itself does that. What version of the SDK do you use?P.S. another quick one - is there a way to stop all printing to the UART and only have my specific functions access it? so that I can run an HTTPD server that receives some GET and POST requests and transfer only their arguments to the UART without all the current debug printing getting in the way?
You can disable the printfs in the httpd code (I should create a define for that) but that doesn't disable the printfs of the SDK itself. The usual trick, I believe, is to install a putchar handler using os_install_putc1 and either use that to send the data to UART1 or drop it alltogether, and then use the putchar routine of uart0 to send your data.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]