Web server goes offline for extended period, but comes back
Posted: Sun Sep 13, 2015 7:26 pm
I have a simple ESP8266-01 application that serves up a web page which shows the status of a switch and the amount of time that the ESP8266 has been running.
The ESP has a fixed IP address on my local LAN.
It has been running for over 260 hours, but has dropped offline for days at a time. I am surprised when it does come back online that the run time has not been restarted, which is what I would expect if a WDT reset occurred.
My loop() does not have a check of the WiFi.Status(), and server.begin() is only called in setup().
My next update to the firmware will include a test of WiFi.Status() and restart as needed, but I am curious what can seeming cause the WiFi connection to be restored without going through reset.
Thanks,
Greg
The ESP has a fixed IP address on my local LAN.
It has been running for over 260 hours, but has dropped offline for days at a time. I am surprised when it does come back online that the run time has not been restarted, which is what I would expect if a WDT reset occurred.
My loop() does not have a check of the WiFi.Status(), and server.begin() is only called in setup().
My next update to the firmware will include a test of WiFi.Status() and restart as needed, but I am curious what can seeming cause the WiFi connection to be restored without going through reset.
Thanks,
Greg