Azure IoT C SDK
Data Fields
IOTHUB_CLIENT_COMMAND_RESPONSE Struct Reference

This struct specifies parameters of an outgoing command response. More...

#include <iothub_client_core_common.h>

Data Fields

int structVersion
 Version of the structure. Currently must be IOTHUB_CLIENT_COMMAND_RESPONSE_STRUCT_VERSION_1.
 
unsigned char * payload
 Response generated by the callback that will be sent to IoT Hub. This must be allocated using malloc().
The SDK takes ownership of the buffer on callback return and will free() it when the SDK is done with it.
 
size_t payloadLength
 Number of bytes application is returning in payload. This should not include the terminating null.
 
int statusCode
 Status code of the command to return to the IoT Hub service. This maps to an HTTP style status code.
 

Detailed Description

This struct specifies parameters of an outgoing command response.


The documentation for this struct was generated from the following file: