corrected version (with typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE;) included in the sources

Dependents:   STM32F746_iothub_client_sample_mqtt

Fork of iothub_client by Azure IoT

Embed: (wiki syntax)

« Back to documentation index

blob.h File Reference

blob.h File Reference

Contains blob APIs needed for File Upload feature of IoTHub client. More...

Go to the source code of this file.

Functions

 DEFINE_ENUM (BLOB_RESULT, BLOB_RESULT_VALUES) MOCKABLE_FUNCTION(
 Synchronously uploads a byte array to blob storage.

Detailed Description

Contains blob APIs needed for File Upload feature of IoTHub client.

IoTHub client needs to upload a byte array by using blob storage API IoTHub service provides the complete SAS URI to execute a PUT request that will upload the data.

Definition in file blob.h.


Function Documentation

DEFINE_ENUM ( BLOB_RESULT  ,
BLOB_RESULT_VALUES   
)

Synchronously uploads a byte array to blob storage.

Parameters:
SASURIThe URI to use to upload data
sizeThe size of the data to be uploaded (can be 0)
sourceA pointer to the byte array to be uploaded (can be NULL, but then size needs to be zero)
httpStatusA pointer to an out argument receiving the HTTP status (available only when the return value is BLOB_OK)
httpResponseA BUFFER_HANDLE that receives the HTTP response from the server (available only when the return value is BLOB_OK)
Returns:
A BLOB_RESULT. BLOB_OK means the blob has been uploaded successfully. Any other value indicates an error