From 2ad0d7ab76808b74cf515ff3a14c1e7155d1f639 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 31 Jul 2022 09:20:34 +0200 Subject: [PATCH] ESP32 wifi should not sleep, otherwise auth errors --- WifiESP32.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/WifiESP32.cpp b/WifiESP32.cpp index 4599c64..a48a590 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -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) {