Turn of Wifi sleep mode

mDNS will sometimes fail with this on
This commit is contained in:
Robert Strouse 2023-02-18 18:18:46 -08:00
parent 765e8f3fd0
commit 46b1438079

View file

@ -188,7 +188,7 @@ bool Network::connect() {
break; break;
case WL_CONNECTED: case WL_CONNECTED:
this->setConnected(); this->setConnected();
delay(100); WiFi.setSleep(false);
return true; return true;
case WL_NO_SHIELD: case WL_NO_SHIELD:
Serial.println("Connection failed - WiFi module not found"); Serial.println("Connection failed - WiFi module not found");