iothub_devicetwin.h

Includes

#include "azure_c_shared_utility/crt_abstractions.h"
#include "azure_c_shared_utility/singlylinkedlist.h"
#include "azure_c_shared_utility/map.h"
#include <time.h>
#include "iothub_service_client_auth.h"
#include "umock_c/umock_c_prod.h"

Detailed Description

Functions

Function Name Description
IOTHUB_DEVICE_TWIN_RESULTStrings
IOTHUB_DEVICE_TWIN_RESULT_FromString
IoTHubDeviceTwin_Create Creates a IoT Hub Service Client DeviceTwin handle for use it in consequent APIs.
IoTHubDeviceTwin_Destroy Disposes of resources allocated by the IoT Hub IoTHubDeviceTwin_Create.
IoTHubDeviceTwin_GetTwin Retrieves the given device's twin info.
IoTHubDeviceTwin_UpdateTwin Updates (partial update) the given device's twin info.
IoTHubDeviceTwin_GetModuleTwin Retrieves the given module's twin info.
IoTHubDeviceTwin_UpdateModuleTwin Updates (partial update) the given module's twin info.

Macro definitions

IOTHUB_DEVICE_TWIN_RESULT_VALUES

#define IOTHUB_DEVICE_TWIN_RESULT_VALUES \
        IOTHUB_DEVICE_TWIN_OK, \
        IOTHUB_DEVICE_TWIN_INVALID_ARG, \
        IOTHUB_DEVICE_TWIN_ERROR, \
        IOTHUB_DEVICE_TWIN_HTTPAPI_ERROR 

Enumeration types

IOTHUB_DEVICE_TWIN_RESULT

enum IOTHUB_DEVICE_TWIN_RESULT {
  IOTHUB_DEVICE_TWIN_OK,
  IOTHUB_DEVICE_TWIN_INVALID_ARG,
  IOTHUB_DEVICE_TWIN_ERROR,
  IOTHUB_DEVICE_TWIN_HTTPAPI_ERROR
}

Type definitions

IOTHUB_SERVICE_CLIENT_DEVICE_TWIN_HANDLE

Handle to hide struct and use it in consequent APIs.

typedef struct IOTHUB_SERVICE_CLIENT_DEVICE_TWIN_TAG* IOTHUB_SERVICE_CLIENT_DEVICE_TWIN_HANDLE;