From 62561864c56152a0d479432be79e6be09c0ff853 Mon Sep 17 00:00:00 2001 From: Eloi Codina Date: Tue, 22 Sep 2020 09:57:32 +0200 Subject: [PATCH] Added WiFi connection status monitoring on main loop. If it disconnects, the ESP reboots. --- esp8266-hunter-sprinkler/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266-hunter-sprinkler/src/main.cpp b/esp8266-hunter-sprinkler/src/main.cpp index 328fffc..e877416 100644 --- a/esp8266-hunter-sprinkler/src/main.cpp +++ b/esp8266-hunter-sprinkler/src/main.cpp @@ -27,5 +27,5 @@ void setup() { } void loop() { - // wifiDisconnected = checkWifiConnection(wifiDisconnected); + wifiDisconnected = checkWifiConnection(wifiDisconnected); } \ No newline at end of file