Skip to content

Commit

Permalink
Update ConfigMode.h
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Aug 16, 2021
1 parent d51fd22 commit fb5ac89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/Blynk.Edgent/Edgent_Wio_Terminal/ConfigMode.h
Expand Up @@ -345,7 +345,11 @@ void enterConnectNet() {
}
}

WiFi.begin(configStore.wifiSSID, configStore.wifiPass);
if (strlen(configStore.wifiPass)) {
WiFi.begin(configStore.wifiSSID, configStore.wifiPass);
} else {
WiFi.begin(configStore.wifiSSID);
}

unsigned long timeoutMs = millis() + WIFI_NET_CONNECT_TIMEOUT;
while ((timeoutMs > millis()) && (WiFi.status() != WL_CONNECTED))
Expand Down

0 comments on commit fb5ac89

Please sign in to comment.