mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Fix WiFi checking
This commit is contained in:
@@ -38,7 +38,7 @@ void connectNetwork() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool checkNetwork() {
|
bool checkNetwork() {
|
||||||
if (!WiFi.status() == WL_DISCONNECTED) {
|
if (WiFi.status() != WL_CONNECTED) {
|
||||||
WiFi.disconnect();
|
WiFi.disconnect();
|
||||||
|
|
||||||
Serial.print("Attempting to reconnect to WPA SSID: ");
|
Serial.print("Attempting to reconnect to WPA SSID: ");
|
||||||
|
|||||||
Reference in New Issue
Block a user