IoTHubClient_Create()

Creates a IoT Hub client for communication with an existing IoT Hub using the specified parameters.

Syntax

#include "azure-iot-sdk-c/iothub_client/inc/iothub_client.h"

IOTHUB_CLIENT_HANDLE IoTHubClient_Create(const   config);

Parameters

The API does not allow sharing of a connection across multiple devices. This is a blocking call.

Return Value

A non-NULL IOTHUB_CLIENT_HANDLE value that is used when invoking other functions for IoT Hub client and NULL on failure.