mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Improve wifi retry interval
This commit is contained in:
parent
2dc871f8bf
commit
e31b681001
@ -446,11 +446,11 @@ bool wifiEvery5Seconds()
|
|||||||
} else {
|
} else {
|
||||||
wifiReconnectCounter++;
|
wifiReconnectCounter++;
|
||||||
if(wifiReconnectCounter > 45) {
|
if(wifiReconnectCounter > 45) {
|
||||||
LOG_ERROR(TAG_WIFI, F("Retries exceed %u: Rebooting..."), wifiReconnectCounter);
|
LOG_ERROR(TAG_WIFI, F("Retries exceeded %d: Rebooting..."), wifiReconnectCounter);
|
||||||
dispatch_reboot(false);
|
dispatch_reboot(false);
|
||||||
}
|
}
|
||||||
LOG_WARNING(TAG_WIFI, F("No Connection... retry %u"), wifiReconnectCounter);
|
LOG_WARNING(TAG_WIFI, F("No Connection... retry %d"), wifiReconnectCounter);
|
||||||
if(wifiReconnectCounter % 6 == 0) {
|
if(wifiReconnectCounter % 2 == 0) {
|
||||||
wifiReconnect();
|
wifiReconnect();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user