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