Sir/Madam,
I want to post a https request in esp32. Currently i am using HTTPClient library for it and it working fine. But why the response is too delayed(more than 2.5seconds) and i am getting good speed in esp8266(less than 600ms). Please help me to solve this issue
Response is too delayed for HTTPClient.post() request
-
- Posts: 14
- Joined: Sat Dec 05, 2015 7:59 am
Re: Response is too delayed for HTTPClient.post() request
Hi @Yatheesha
Did you use esp_http_client_read to read the data? If yes and you provide the len parameter more than the number of bytes to read, then http_client will wait for the end of the timeout to return. You can use esp_http_client_get_content_length to know the exact number of bytes to read before calling the read function.
Did you use esp_http_client_read to read the data? If yes and you provide the len parameter more than the number of bytes to read, then http_client will wait for the end of the timeout to return. You can use esp_http_client_get_content_length to know the exact number of bytes to read before calling the read function.
Who is online
Users browsing this forum: No registered users and 32 guests