mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
ESP32 wifi should not sleep, otherwise auth errors
This commit is contained in:
parent
3f0b3ccaf7
commit
2ad0d7ab76
@ -99,6 +99,7 @@ bool WifiESP::setup(const char *SSid,
|
||||
|
||||
if (haveSSID && havePassword) {
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.setSleep(false);
|
||||
WiFi.setAutoReconnect(true);
|
||||
WiFi.begin(SSid, password);
|
||||
while (WiFi.status() != WL_CONNECTED && tries) {
|
||||
|
Loading…
Reference in New Issue
Block a user