This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235S: File download in small data chunks from HTTPS server

Part Number: CC3235S


I referred below link and got some input on file download program from HTTPS server.

I am using SimpleLink SDK V4.10 and could not find HTTPS file download example program. Can you please provide where can i find the same?

Also, I want to download file of size around 5MB. My hardware uses CC3235S module mounted on one small board while my MCU communicating with this module is on another board. Both of these boards communicate with each other (i.e. MCU communicate with CC3235S) over UART port. I want to download binary file of MCU firmware from HTTPS server for MCU firmware update. However, CC3235S module has only RAM of 256KB and hence I want to download MCU firmware binary file in small chunks and send the chunk to main board from daughter board. On main board I have large RAM memory in which I can accumulate complete firmware file. Can you please guide me on what modifications to be done in file download example program to download large file in small chunks?



  • Hello Pradeep,

    I have assigned this internally to one of our SimpleLink experts and we will get back to you with any of our findings.



  • The HTTPGet is the example you should refer to. By default it uses HTTP and not HTTPS. You will need to add the "HTTPClient_extSecParams" parameter (for the HTTPClient_connect API).

    Regarding the chunked data - Check the way the HTTPClient_readResponseBody is handled in the example. Basically the HTTPClient_readResponseBody has a buffer and length parameters where you can limit the size of the received buffer. A "more" flag will tell you when the last chunk was received. 

     You can also refer to the ota_if.c (Over-The-Air Interface) implementation in the mqtt_client example of SDK6.10 that shows how the HTTPClient with security and with a real chunked data.