From aeac3fe94c545c897359df62a34749e15d53e205 Mon Sep 17 00:00:00 2001 From: Andrea Florio Date: Sun, 19 Sep 2021 19:39:44 +0200 Subject: [PATCH] fixes wifi setting not saved fixes 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..36de5a4 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 +}