fix function calls for wifi checks
This commit is contained in:
parent
b90df4923d
commit
4b4fd01600
|
@ -52,10 +52,11 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
unsigned int wifiRetryCount = 0;
|
||||
if (WiFi.status != WL_CONNECTED){
|
||||
if (WiFi.status() != WL_CONNECTED){
|
||||
WiFi.disconnect();
|
||||
WiFi.reconnect();
|
||||
|
||||
while (WiFi.status != WL_CONNECTED){
|
||||
while (WiFi.status() != WL_CONNECTED){
|
||||
if (wifiRetryCount++ > 5) return;
|
||||
delay(1000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue