-->
Page 2 of 2

Re: ESP8266 Web Server --some browser requests are timing ou

PostPosted: Mon Jul 09, 2018 3:57 pm
by Sirquil
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

Re: ESP8266 Web Server --some browser requests are timing ou

PostPosted: Sun Jul 15, 2018 6:19 pm
by Sirquil
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