Skip to content

Commit b03317e

Browse files
authored
Disable WiFi Powersave for better responsiveness (#123)
Appears to make the module a tad more responsive once connected
1 parent e992269 commit b03317e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

esp32-cam-webserver.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ void WifiSetup() {
247247
delay(100);
248248
flashLED(300);
249249
Serial.println("Starting WiFi");
250+
251+
// Disable power saving on WiFi to improve responsiveness
252+
// (https://github.com/espressif/arduino-esp32/issues/1484)
253+
WiFi.setSleep(false);
254+
250255
Serial.print("Known external SSIDs: ");
251256
if (stationCount > firstStation) {
252257
for (int i=firstStation; i < stationCount; i++) Serial.printf(" '%s'", stationList[i].ssid);

0 commit comments

Comments
 (0)