just comment out a bit more code....
This commit is contained in:
@@ -308,17 +308,17 @@ void setup(void) {
|
||||
}
|
||||
|
||||
void loop(void) {
|
||||
if (wifiState!=WiFi.status()) {
|
||||
/*if (wifiState!=WiFi.status()) {
|
||||
Serial.print("Wifi Status Change: ");
|
||||
Serial.println(WiFi.status());
|
||||
wifiState=WiFi.status();
|
||||
}
|
||||
} */
|
||||
|
||||
// if we lost connection reconnect...
|
||||
if (WL_CONNECTED != WiFi.status()){
|
||||
WiFi.disconnect();
|
||||
delay(1000);
|
||||
// This didn't work - let's try rebooting instead.
|
||||
//WiFi.disconnect();
|
||||
//delay(1000);
|
||||
// wifiSetup();
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user