-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http(s) client: how to download a big file chunk by chunk ? #261
Comments
I had similar issues (but not chunked) see [https://github.com//issues/177] On the STM32 forums [https://community.st.com/t5/stm32cubeide-mcus/azurertos-netxduo-unable-to-download-16k-or-larger-image-using/m-p/618241] i uploaded a simple project to download various sizes from httpbin.org, where you can specify the size of bin file Still unresolved. |
Can you please let me know if you managed to resolve this issue? I'm also running in this issue now. |
Hello @reza-hdd I'm currently using the following skeleton, working for the moment, but should be cleanup and probably a better management of errors should be done (particularly, I'm not 100% sure of the treatments to do for different return values of
|
Hello,
I'm trying to do some firmware update with a custom client application.
I successfully done several GET/PUT/POST operation with the https client on my device (stm32l4) with wifi offloading using the b-l4s5i-iot01a board.
Now I try to download a firmware file to perform the FOTA operation on my device. The file is currently about 650kB.
The skeleton/configuration I have used until now seems not working at all and totally blocking in the
nx_web_http_client_response_body_get
call.... :-(Can you indicate a skeleton/working configuration to perform GET HTTP to retrieve a big file chunk by chunk ? I need to flash the content received block by block because of course the whole file retrieved from the server will not fit in the RAM!!
Is
nx_web_http_client_response_body_get
to be used ? Is it possible to have a callback invoked for each chunk of the received file ? I have seen topics about theNX_DISABLE_PACKET_CHAIN
configuration, but not explored for the moment because the mqtt addon doesn't build disabling the packet chain feature...Thanks for pointer/help/skeleton/code example that may help on this topic!
Joel
The text was updated successfully, but these errors were encountered: