IoTHubDeviceClient_UploadToBlobAsync()
IoTHubDeviceClient_UploadToBlobAsync uploads data from memory to a file in Azure Blob Storage.
Syntax
#include "azure-iot-sdk-c/iothub_client/inc/iothub_device_client.h"
IOTHUB_CLIENT_RESULT IoTHubDeviceClient_UploadToBlobAsync(
IOTHUB_DEVICE_CLIENT_HANDLE iotHubClientHandle,
const char * destinationFileName,
const unsigned char * source,
size_t size,
IOTHUB_CLIENT_FILE_UPLOAD_CALLBACK iotHubClientFileUploadCallback,
void * context
);
Parameters
iotHubClientHandleThe handle created by a call to the IoTHubDeviceClient_Create function.destinationFileNameThe name of the file to be created in Azure Blob Storage.sourceThe source of data.sizeThe size of data.iotHubClientFileUploadCallbackA callback to be invoked when the file upload operation has finished.contextA user-provided context to be passed to the file upload callback.
Return Value
IOTHUB_CLIENT_OK upon success or an error code upon failure.
Saran dan Komentar
Kirim dan lihat umpan balik untuk