Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Disable wi-fi power save to improve responsiveness

Oleg Kalachev485a39e74083
diff --git a/flix/wifi.ino b/flix/wifi.ino
index 6814dbe..8386d89 100644
--- a/flix/wifi.ino
+++ b/flix/wifi.ino
@@ -25,6 +25,7 @@ void setupWiFi() {
} else if (wifiMode == W_STA) {
WiFi.begin(storage.getString("WIFI_STA_SSID", "").c_str(), storage.getString("WIFI_STA_PASS", "").c_str());
}
+ WiFi.setSleep(false); // disable power save
udp.begin(udpLocalPort);
}