Download binary files
Posted: Fri Oct 31, 2025 9:02 pm
I've am using an ESP32-C6-DevKitC-1 with esp-at. My host is a Nucleo-F767. No issues connecting and performing basic post functions (AT+HTTPCPOST). That part is working great. I am having issues downloading binary files.
I'm using the method here:
https://github.com/espressif/esp-at/blo ... amples.rst
Result are OK when downloading a 1MB file but, when downloading larger files (25MB) I am not getting the whole file. I am missing bytes. Maybe esp-at is missing packets? I've tried increasing the UART baud rate but I am receiving the bytes faster than they are coming in from the esp32. Is there a better way to download binaries using esp-at?
Second issue:
Sometimes the esp32 will not join the AP. It returns an error 3, no AP found. The AT command to scan for AP's (AT+CWLAP) returns OK with no AP's found. After removing power from the devkit, it starts to work again. I tried using AT+RESTORE but that did not help. What could be causing this behavior?
I'm using the method here:
https://github.com/espressif/esp-at/blo ... amples.rst
Result are OK when downloading a 1MB file but, when downloading larger files (25MB) I am not getting the whole file. I am missing bytes. Maybe esp-at is missing packets? I've tried increasing the UART baud rate but I am receiving the bytes faster than they are coming in from the esp32. Is there a better way to download binaries using esp-at?
Second issue:
Sometimes the esp32 will not join the AP. It returns an error 3, no AP found. The AT command to scan for AP's (AT+CWLAP) returns OK with no AP's found. After removing power from the devkit, it starts to work again. I tried using AT+RESTORE but that did not help. What could be causing this behavior?