mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 05:11:24 +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) {
|
if (haveSSID && havePassword) {
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
|
WiFi.setSleep(false);
|
||||||
WiFi.setAutoReconnect(true);
|
WiFi.setAutoReconnect(true);
|
||||||
WiFi.begin(SSid, password);
|
WiFi.begin(SSid, password);
|
||||||
while (WiFi.status() != WL_CONNECTED && tries) {
|
while (WiFi.status() != WL_CONNECTED && tries) {
|
||||||
|
Loading…
Reference in New Issue
Block a user