Skip to content

Commit

Permalink
Merge pull request #4 from numericOverflow/ESPAsyncWiFiManager3.x
Browse files Browse the repository at this point in the history
Compatability update for ESPAsyncWiFiManager3.x not persisting wifi credentials after reboot
  • Loading branch information
ecodina authored Sep 25, 2021
2 parents 6256186 + 6904707 commit 4849b68
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 4849b68

Please sign in to comment.