Microsoft Azure IoTHub client libraries
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp f767zi_mqtt ... more
This library implements the Microsoft Azure IoTHub client library. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: iothub_client.h
- Revision:
- 82:f94e6bed4495
- Parent:
- 81:8de701563187
- Child:
- 88:248736be106e
--- a/iothub_client.h Wed Jan 17 08:56:33 2018 -0800 +++ b/iothub_client.h Tue Jan 30 08:21:20 2018 -0800 @@ -357,15 +357,29 @@ */ MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubClient_UploadToBlobAsync, IOTHUB_CLIENT_HANDLE, iotHubClientHandle, const char*, destinationFileName, const unsigned char*, source, size_t, size, IOTHUB_CLIENT_FILE_UPLOAD_CALLBACK, iotHubClientFileUploadCallback, void*, context); - /** + /** + ** DEPRECATED: Use IoTHubClient_UploadMultipleBlocksToBlobAsyncEx instead ** * @brief Uploads a file to a Blob storage in chunks, fed through the callback function provided by the user. * @remarks This function allows users to upload large files in chunks, not requiring the whole file content to be passed in memory. * @param iotHubClientHandle The handle created by a call to the IoTHubClient_Create function. * @param destinationFileName The name of the file to be created in Azure Blob Storage. * @param getDataCallback A callback to be invoked to acquire the file chunks to be uploaded, as well as to indicate the status of the upload of the previous block. * @param context Any data provided by the user to serve as context on getDataCallback. + * @returns An IOTHUB_CLIENT_RESULT value indicating the success or failure of the API call. + ** DEPRECATED: Use IoTHubClient_UploadMultipleBlocksToBlobAsyncEx instead ** + */ + MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubClient_UploadMultipleBlocksToBlobAsync, IOTHUB_CLIENT_HANDLE, iotHubClientHandle, const char*, destinationFileName, IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_CALLBACK, getDataCallback, void*, context); + + /** + * @brief Uploads a file to a Blob storage in chunks, fed through the callback function provided by the user. + * @remarks This function allows users to upload large files in chunks, not requiring the whole file content to be passed in memory. + * @param iotHubClientHandle The handle created by a call to the IoTHubClient_Create function. + * @param destinationFileName The name of the file to be created in Azure Blob Storage. + * @param getDataCallbackEx A callback to be invoked to acquire the file chunks to be uploaded, as well as to indicate the status of the upload of the previous block. + * @param context Any data provided by the user to serve as context on getDataCallback. * @returns An IOTHUB_CLIENT_RESULT value indicating the success or failure of the API call.*/ - MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubClient_UploadMultipleBlocksToBlobAsync, IOTHUB_CLIENT_HANDLE, iotHubClientHandle, const char*, destinationFileName, IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_CALLBACK, getDataCallback, void*, context); + MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubClient_UploadMultipleBlocksToBlobAsyncEx, IOTHUB_CLIENT_HANDLE, iotHubClientHandle, const char*, destinationFileName, IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_CALLBACK_EX, getDataCallbackEx, void*, context); + #endif /* DONT_USE_UPLOADTOBLOB */ #ifdef __cplusplus