Page 1 of 1

Problem - ESP32-IDF Reading HTTP-GET response with delay

Posted: Thu Jun 24, 2021 9:27 am
by slh_binary
Hi Forum,

I use the sample "http_request" from ESP-IDF V4.2 and it works. But the Problem is that when I read a file e.g 1MB from a URL, the file reading process is delayed by about 1 second every once in a while and resumes again until read the entire file. This will make the download time be long. How can to download smoothly without delay?

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Posted: Thu Jun 24, 2021 10:05 am
by ESP_Sprite
What are you downloading the file to?

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Posted: Thu Jun 24, 2021 11:11 am
by slh_binary
ESP_Sprite wrote:
Thu Jun 24, 2021 10:05 am
What are you downloading the file to?
From own server and also this two links:
https://class.ece.uw.edu/542/peckol/doc ... icture.bmp
https://www.timscbx.com/Gallery%20pics/jeff%20coker.bmp

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Posted: Thu Jun 24, 2021 11:14 am
by slh_binary
ESP_Sprite wrote:
Thu Jun 24, 2021 10:05 am
What are you downloading the file to?
Both send via SPI and just showing in Terminal.

Re: Problem - ESP32-IDF Reading HTTP-GET response with delay

Posted: Fri Jun 25, 2021 1:35 am
by ESP_Sprite
Okay, that implies the one second delay can't be on the output side. Hard to say then. You could try to see if you could sniff the WiFi traffic somewhere (e.g. hotspot on a laptop + Wireshark) to see if there's obvious badness going on.