Azure Iot sdk - upload blob metadata?

2020-02-15 15:46发布

问题:

It's great that Azure Iot hub and sdk supports blob uploading. However it seems blob metadata uploading is not there. Any plan to add the feature? It's a very handy feature for small projects.

Or it's already supported but I missed something?

回答1:

That's correct. There is no method (support) for the blob metadata uploading in the Azure IoT Device Client SDK. However, the following workaround can be used for this feature. It's based on the uploading files with IoT Hub using the REST API calls.

Step 1: The device ask an Azure IoT Hub for upload references

Step 2: Upload blob and metadata

Step3: Complete the device uploading process:



回答2:

This feature is tracked by https://github.com/Azure/azure-iot-sdk-csharp/issues/165 for the .NET Azure IoT SDK.