Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Enable Wifi.persistent (fixes #136)
Browse files Browse the repository at this point in the history
  • Loading branch information
maakbaas committed Dec 28, 2021
1 parent a198a56 commit 08fd042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ void WifiManager::begin(char const *apName, unsigned long newTimeout)
{
captivePortalName = apName;
timeout = newTimeout;

WiFi.mode(WIFI_STA);

WiFi.persistent(true);

//set static IP if entered
ip = IPAddress(configManager.internal.ip);
gw = IPAddress(configManager.internal.gw);
Expand Down

0 comments on commit 08fd042

Please sign in to comment.