Disable WiFi Powersave for better sewsponsiveness

This commit is contained in:
Owen 2021-06-08 09:57:24 +02:00
parent 0cba55bbca
commit 9213bccc52
1 changed files with 5 additions and 0 deletions

View File

@ -247,6 +247,11 @@ void WifiSetup() {
delay(100);
flashLED(300);
Serial.println("Starting WiFi");
// Disable poser saving on WiFi to improve responsiveness
// (https://github.com/espressif/arduino-esp32/issues/1484)
WiFi.setSleep(false);
Serial.print("Known external SSIDs: ");
if (stationCount > firstStation) {
for (int i=firstStation; i < stationCount; i++) Serial.printf(" '%s'", stationList[i].ssid);