Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
167 stars 96 forks source link

upload_to_blob functionality (blob.c and blob.h) #136

Open jameszah opened 2 years ago

jameszah commented 2 years ago

Hi, followup to previous question: https://github.com/Azure/azure-iot-arduino/issues/135 (I'm using normal Arduino IDE with esp32 module)

I have been using the IOTHub upload_to_blob functionality, which seems to have been removed from the library.

I got these old files installed in my Arduino libraries to make it work: (the current v1.6.0 system plus these old files from 3 years ago)

https://github.com/Azure/azure-iot-arduino/blob/jbobotek-patch-1/src/blob.c C:\ArduinoPortable\arduino-1.8.13\portable\sketchbook\libraries\AzureIoTHub\src\blob.c

https://github.com/Azure/azure-iot-arduino/blob/jbobotek-patch-1/src/blob.h C:\ArduinoPortable\arduino-1.8.13\portable\sketchbook\libraries\AzureIoTHub\src\internal\blob.h

I've seen a post somewhere that the upload_to_blob has been removed on purpose, so I am wondering if it is coming back, or it is gone for a reason? I see azure_sdk_for_c https://github.com/Azure/azure-sdk-for-c/pull/1960 is just adding it back. Does that mean it will return here? Or these are unrelated?

jameszah commented 2 years ago

Here is my program that send blobs to IOTHub -- they are jpeg pictures from an ESP32-CAM sent to blob storage for analysis at the Azure function or app level, and archive. Upload_to_blob would be a nice feature in the regular library.

https://github.com/jameszah/ESP32-AI-CAM