Page 1 of 1

Response is too delayed for request

Posted: Fri Feb 08, 2019 11:08 am
by Yatheesha
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

Re: Response is too delayed for request

Posted: Mon Feb 11, 2019 12:34 pm
by ESP_tuanpm
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.