Hello Bo Chen
Thank you for providing the sample program information that accesses Azure Blob storage.
When I checked the contents of that, it seems that the size of the data to be uploaded is not very large, and it seems that it can be contained in one packet addition process.
If possible, I would like you to introduce a sample program that uploads (and downloads) large data exceeding 1 MB.Is there anything suitable?
Supplement the information for the programs referenced below.
The referenced source is the function of the file in the folder below.
In this example, the data specified by "file_content" is combined with the outgoing packet information in a single nx_packet_data_append function call (transcribed below).
Therefore, it seems that you cannot send more than the memory size secured in the packet pool.
In the case of embedded devices, it is difficult to allocate a MB-order memory area to the packet pool, and it is necessary to divide it by the available working memory size and request transmission.
Therefore, I would like to ask for your advice. Is it possible to send a transmission request while dividing large content data (MB order) using a buffer smaller than the content data with nx_web_http_client?
If you have such a sample, could you introduce it to me?
Best regards,
Yoji Sato
Grape Systems Inc.
azure-rtos-file-upload-main\sample_azure_iot_file_upload\
sample_azure_iot_file_upload.c
UINT sample_file_upload(UCHAR *file_content, UINT file_content_len,
UCHAR *host_name, UINT host_name_len,
UCHAR *full_uri, UINT full_uri_len,
UINT wait_option)
{
:
status = nx_packet_data_append(packet_ptr, file_content, file_content_len, iothub_client.nx_azure_iot_ptr -> nx_azure_iot_pool_ptr, wait_option);
:
}