Skip to content

Commit

Permalink
Compatability update for ESPAsyncWiFiManager3.x
Browse files Browse the repository at this point in the history
Should fix issue where wifi credentials not persisting reboots when using ESPAsyncWiFiManager 3.x
ecodina#3
  • Loading branch information
numericOverflow authored Jul 29, 2021
1 parent 6256186 commit 6904707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp8266-hunter-sprinkler/src/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
void setupWifi() {
DNSServer dns;

WiFi.persistent(true);
AsyncWiFiManager wifiManager(&server, &dns);
//wifiManager.resetSettings();

Expand All @@ -44,4 +45,4 @@ bool checkWifiConnection(bool nextTimeShouldReboot) {
ESP.restart();
}
return false;
}
}

0 comments on commit 6904707

Please sign in to comment.