Is it possible to run esp_http_client asynchronously?
Posted: Wed Jun 01, 2022 10:17 am
I am trying to implement an HTTP-client, based on esp_http_client component, working in a fully asynchronous mode.
As it is said in the documentation
Is that an expected behavior for async mode for esp_http_client?
I expected, that notwithstanding the case there should not be any blocking within the esp_http_client methods, isn't me right?
As it is said in the documentation
However, if the target host is not available or there is no WIFI, I found that esp_http_client_perform(client) blocks for about 10 sec, resuming only after the timeout ends.To enable non-blocking esp_http_client_perform(), is_async member of esp_http_client_config_t must be set while making a call to esp_http_client_init() API.
Is that an expected behavior for async mode for esp_http_client?
I expected, that notwithstanding the case there should not be any blocking within the esp_http_client methods, isn't me right?