Azure IoT C SDK
Functions
iothub.h File Reference

Global initialization and deinitialization routines for all IoT Hub client operations. More...

#include "umock_c/umock_c_prod.h"

Go to the source code of this file.

Functions

int IoTHub_Init ()
 IoTHubClient_Init Initializes the IoT Hub Client System. More...
 
void IoTHub_Deinit ()
 IoTHubClient_Deinit Frees resources initialized in the IoTHubClient_Init function call. More...
 

Detailed Description

Global initialization and deinitialization routines for all IoT Hub client operations.

Function Documentation

◆ IoTHub_Deinit()

void IoTHub_Deinit ( )

IoTHubClient_Deinit Frees resources initialized in the IoTHubClient_Init function call.

Remarks
This should be called when using IoT Hub client library, including the device provisioning client.

This function should be called once per process, not per-thread.

Warning
Close all IoT Hub and provisioning client handles prior to invoking this.

◆ IoTHub_Init()

int IoTHub_Init ( )

IoTHubClient_Init Initializes the IoT Hub Client System.

Remarks

This must be called before using any functionality from the IoT Hub client library, including the device provisioning client.

IoTHubClient_Init should be called once per process, not per-thread.

Returns
int zero upon success, any other value upon failure.