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

Commit fdf7024

Browse files
authored
fix: automatic reconnect when WiFi is lost (#161)
1 parent bc02314 commit fdf7024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WiFiManager.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ void WifiManager::begin(char const *apName, unsigned long newTimeout)
1818

1919
WiFi.mode(WIFI_STA);
2020
WiFi.persistent(true);
21+
WiFi.setAutoReconnect(true);
2122

2223
//set static IP if entered
2324
ip = IPAddress(configManager.internal.ip);

0 commit comments

Comments
 (0)