Disable WiFi Powersave for better sewsponsiveness
This commit is contained in:
parent
0cba55bbca
commit
9213bccc52
|
@ -247,6 +247,11 @@ void WifiSetup() {
|
||||||
delay(100);
|
delay(100);
|
||||||
flashLED(300);
|
flashLED(300);
|
||||||
Serial.println("Starting WiFi");
|
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: ");
|
Serial.print("Known external SSIDs: ");
|
||||||
if (stationCount > firstStation) {
|
if (stationCount > firstStation) {
|
||||||
for (int i=firstStation; i < stationCount; i++) Serial.printf(" '%s'", stationList[i].ssid);
|
for (int i=firstStation; i < stationCount; i++) Serial.printf(" '%s'", stationList[i].ssid);
|
||||||
|
|
Loading…
Reference in New Issue