Azure / azure-sdk-for-c

This repository is for active development of the Azure SDK for Embedded C. For consumers of the SDK we recommend visiting our versioned developer docs at https://azure.github.io/azure-sdk-for-c.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blob Upload Support

AlexGhiondea opened this issue · comments

This tracks the [Storage] Blob Upload/Download Support - Embedded-C for the Azure SDK team

Hi, does this imply you are planning blob upload code in Nov 2021?

Would that be similar to the Storage_Blobs branch?

I have been using this: IoTHubDeviceClient_LL_UploadToBlob() which works but seems much slower than normal upload traffic from esp32.

Would this bypass the iothub and go directly to the a azure Storage blob system? ... and potentially faster?

This is the activity I assume:
#1943

I'm using this on an esp32 to upload to azure blobs. Had a struggle getting the IOTHub blob-upload to work - starting with the standard arduino libraries, then a bit of fiddling with blob.h / blob.c to get it working. It would be nice to get the IOTHub and regular blob-upload into the arduino library system.

Question on az_http_client_send_request -- maybe someone here has the easy answer

Azure/azure-iot-arduino#135 (comment)

Hi James, I am not sure about Arduino. This Storage API in the PR would not use IoT hub, and would rely on an HTTP client, basically on libcurl (simply put). I am not sure if it is possible to fit libcurl to Arduino.

Hi, thanks for the response. I got the IOTHub upload-to-blob working, but I think azure-sdk-for-c upload-to-blob would work better -- maybe faster with less memory. I was hoping to get the attention of the "azure iot" team.

"azure-sdk-for-c" seems normally to be build on top of libcurl, but has the option of providing your own http stack -- which I assume the many "azure arduino iot" libraries (5-6 of them) would implement, or the esp-azure specifically for the esp <-> azure interaction.
az_http_client_send_request seems to be the interface point -- but I cannot figure out that interface.

I think 2 rest-api's would do the job, without libraries -- create-blob and store-block-to-blob ??? -- but a library is nicer.

Thanks