Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: azure_umqtt_c iothub_mqtt_transport mbed-rtos mbed wolfSSL Socket lwip-eth lwip-sys lwip
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:
-
SASURI The URI to use to upload data size The size of the data to be uploaded (can be 0) source A pointer to the byte array to be uploaded (can be NULL, but then size needs to be zero) httpStatus A pointer to an out argument receiving the HTTP status (available only when the return value is BLOB_OK) httpResponse A 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
Generated on Wed Jul 13 2022 07:19:04 by
1.7.2