ESP32-S3, wifi disconnects during downloading
Posted: Thu Sep 05, 2024 1:03 pm
I am experiencing an issue with the ESP32-S3 while downloading a file using the following code:
The download starts off well, with the first few MB being downloaded quickly and efficiently. However, as the download progresses, the speed drops significantly and eventually, the Wi-Fi disconnects. Initially, the disconnection occurs with the error WIFI_REASON_BEACON_TIMEOUT. The device then attempts to reconnect but immediately disconnects again with the error WIFI_REASON_ASSOC_COMEBACK_TIME_TOO_LONG. At this point, I have to reboot the device to restore normal Wi-Fi functionality.
Parameters:
esp32 v2.0.14
What could be causing this issue, and how can it be resolved?
Thank you!
Code: Select all
WiFiClient* stream = http.getStreamPtr();
stream->readBytes();
Parameters:
Code: Select all
WiFi.mode(WIFI_STA);
WiFi.setSleep(false);
What could be causing this issue, and how can it be resolved?
Thank you!