MQTT API Reference
MQTT 3.1.1 client library
IotMqtt_Init

One-time initialization function for the MQTT library.

This function performs setup of the MQTT library. It must be called once (and only once) before calling any other MQTT function. Calling this function more than once without first calling IotMqtt_Cleanup may result in a crash.

Returns
One of the following:
Warning
No thread-safety guarantees are provided for this function.
See also
IotMqtt_Cleanup
IotMqttError_t
IotMqttError_t
Return codes of MQTT functions.
Definition: iot_mqtt_types.h:103
IotMqtt_Init
IotMqttError_t IotMqtt_Init(void)
One-time initialization function for the MQTT library.
Definition: iot_mqtt_api.c:907