From 6904707b75e78f72dd3461d9f80382c43a0a5e97 Mon Sep 17 00:00:00 2001 From: numericOverflow Date: Thu, 29 Jul 2021 11:53:09 -0500 Subject: [PATCH] Compatability update for ESPAsyncWiFiManager3.x Should fix issue where wifi credentials not persisting reboots when using ESPAsyncWiFiManager 3.x https://github.com/ecodina/hunter-wifi/issues/3 --- esp8266-hunter-sprinkler/src/wifi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp8266-hunter-sprinkler/src/wifi.cpp b/esp8266-hunter-sprinkler/src/wifi.cpp index 5b0152c..b4f0aae 100644 --- a/esp8266-hunter-sprinkler/src/wifi.cpp +++ b/esp8266-hunter-sprinkler/src/wifi.cpp @@ -20,6 +20,7 @@ void setupWifi() { DNSServer dns; + WiFi.persistent(true); AsyncWiFiManager wifiManager(&server, &dns); //wifiManager.resetSettings(); @@ -44,4 +45,4 @@ bool checkWifiConnection(bool nextTimeShouldReboot) { ESP.restart(); } return false; -} \ No newline at end of file +}