- Tue Jul 14, 2015 8:58 am
#23236
Heya,
did some testing with -
Code: Select allvoid loop() {
if ( WiFi.status() == WL_CONNECTED ) {
server.handleClient();
counter++;
if ( ( counter % 1000000 ) == 0 ) { // around 10 sec
ElapsedStr( tmpstr ); // form str with hh:mm:ss
Serial.println( tmpstr );
}
if ( ( counter % 500000000 ) == 0 ) { //around 1h30min
Serial.println("Restarting ESP");
ESP.restart();
}
} else {
Serial.println("Disconnected");
delay(2000);
}
}
If I regularly visit web page in periods shorter than 10mins I can always get a proper http response (and handle_root() executed), but after around 10min of *inactivity* http part stops responding.
Serial printing do keeps running until predefined ESP.restart(). All that with NeoPixel code removed and strip disconnected.
Next step is trying /staging/ code from github ..
--
Mozz