iothub_devicemethod.h

Includes

#include "iothub_service_client_auth.h"
#include "umock_c/umock_c_prod.h"

Detailed Description

Functions

Function Name Description
IOTHUB_DEVICE_METHOD_RESULTStrings
IOTHUB_DEVICE_METHOD_RESULT_FromString
IoTHubDeviceMethod_Create Creates a IoT Hub Service Client DeviceMethod handle for use it in consequent APIs.
IoTHubDeviceMethod_Destroy Disposes of resources allocated by the IoT Hub IoTHubDeviceMethod_Create.
IoTHubDeviceMethod_Invoke Call a method on device with a given payload.
IoTHubDeviceMethod_InvokeModule Call a method on device and a module with a given payload.

Macro definitions

IOTHUB_DEVICE_METHOD_RESULT_VALUES

#define IOTHUB_DEVICE_METHOD_RESULT_VALUES \
        IOTHUB_DEVICE_METHOD_OK, \
        IOTHUB_DEVICE_METHOD_INVALID_ARG, \
        IOTHUB_DEVICE_METHOD_ERROR, \
        IOTHUB_DEVICE_METHOD_HTTPAPI_ERROR 

Enumeration types

IOTHUB_DEVICE_METHOD_RESULT

enum IOTHUB_DEVICE_METHOD_RESULT {
  IOTHUB_DEVICE_METHOD_OK,
  IOTHUB_DEVICE_METHOD_INVALID_ARG,
  IOTHUB_DEVICE_METHOD_ERROR,
  IOTHUB_DEVICE_METHOD_HTTPAPI_ERROR
}

Type definitions

IOTHUB_SERVICE_CLIENT_DEVICE_METHOD_HANDLE

Handle to hide struct and use it in consequent APIs.

typedef struct IOTHUB_SERVICE_CLIENT_DEVICE_METHOD_TAG* IOTHUB_SERVICE_CLIENT_DEVICE_METHOD_HANDLE;