Chat freely about anything...

User avatar
By Sirquil
#76966 Will stay with current approach for now; perhaps in the future I'll move to using ESP8266Webserver library with all the features it offers.

Found this article "The Sleep States of the ESP8266" here: https://blog.creations.de/?p=149

Learned the default sleep mode is "Auto Modem Sleep." I believe this is the source of my problem.

Power is not an issue on my project; so I used the following:

Code: Select allextern "C" {
  #include "user_interface.h"
}
void loop() {
  wifi_set_sleep_type(NONE_SLEEP_T);
  delay(100);
 
  //rest of loop code
}


Testing this solution; faster page loading, with no timeout error messages --so far. Will continue to observe over the next few days.

William
Last edited by Sirquil on Sat Jul 28, 2018 8:03 am, edited 2 times in total.
User avatar
By Sirquil
#77071 Moved block of code responsible for every 15 minute data updates, logging, sending data to ThingSpeak and the Hosted, domain website moved from loop to inside of listen function. Listen function has priority except for 10 seconds at 14 min 50 sec., 30 min. 50 sec., 45 min. 50 sec., and 59 min 50 sec.; then the moved code block has priority. Result of this move has proved to be better responses to Client requests and improved reliability!

ESP8266 Server web site: https://tinyurl.com/500-weather New link!

Hosted web site: https://tinyurl.com/Indpls-weather

William
Attachments
Improved client response time and reliability...
(16.93 KiB) Downloaded 151 times