IoTHubDeviceClient_LL_UploadToBlob not availaible on Azure Sphere

Michal Žůrek 136 Reputation points
2021-03-09T21:57:38.067+00:00

How to use IoTHubDeviceClient_LL_UploadToBlob on Azure Sphere? This function is not present in any header file in following folder and compilation crashes on implicit declaration of this function.

C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\8\usr\include\

It looks like Azure Sphere team bundles modified https://github.com/Azure/azure-iot-sdk-c/ library. There are some additional functions like

IoTHubDeviceClient_LL_CreateWithAzureSphereFromDeviceAuth but lot of functions including IoTHubDeviceClient_LL_UploadToBlob are missing.

Is there possibility to upload file to Azure from Azure Sphere without need to do it fully manually?

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
165 questions
{count} vote

1 answer

Sort by: Most helpful
  1. QuantumCache 20,261 Reputation points
    2021-03-16T07:04:45.193+00:00

    Hello @Michal Žůrek Thanks for the query, I hope the below response from our product team may help with your initial query.

    Upload file to Azure Blob using libcurl:

    This sample demonstrates uploading a text file to Azure Blob service from Azure Sphere using libcurl to initiate Put Blob REST API with SAS authorization.

    Please comment in the below section if you have any suggestions or comments.

    If the response is helpful, please click "Accept Answer" and upvote it.