In the esp_http_client example I am able to get a "200 OK" response in function http_download_chunk().
This indicates chunked data has been successfully downloaded, but how do I read this data as I could not find an API function in HTTP Client to do so.
Only way I could access data was through HTTP_EVENT_ON_DATA, but I am not sure if that is the proper way of previewing data and what are the risks involved with this method.
Ideally I would want to recieve a file and write it to device's flash.
How to read downloaded HTTP chunked data?
-
- Posts: 10
- Joined: Mon Apr 08, 2019 11:55 am
-
- Posts: 10
- Joined: Mon Apr 08, 2019 11:55 am
Re: How to read downloaded HTTP chunked data?
esp_http_client_read() seems to do the work.
Who is online
Users browsing this forum: No registered users and 120 guests