Unable to download a file completely from server using HTTP request through quectel EC20 module.

abanik
Posts: 4
Joined: Tue Aug 11, 2020 7:45 am

Unable to download a file completely from server using HTTP request through quectel EC20 module.

Postby abanik » Tue Aug 18, 2020 8:05 am

Hello,
I have been trying to download a file from the server in the SD card by making HTTP request through Quectel EC20. In my case the serial buffer has been set as 2048 for Quectel serial buffer. Till 2146 bytes the file is downloaded correctly, but after that the data seems to be missing due to which complete file cannot be downloaded. To confirm that this problem is dependent on buffer size, the buffer size was changed to 4096 and 8192 bytes, but the discontinuity in data occurred after 100-150 bytes from the new buffer size. Hence my concern is what should be the appropriate buffer size for Serial.
Since I am new to ESP32, if anyone can suggest some other method to implement the process, it would be appreciated.

Who is online

Users browsing this forum: No registered users and 16 guests