1
0
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:
Harald Barth 2022-07-31 09:20:34 +02:00
parent 3f0b3ccaf7
commit 2ad0d7ab76

View File

@ -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) {