AWS IoT Device SDK C: MQTT
MQTT 3.1.1 client library
Return to main page ↑
IotMqtt_Cleanup

One-time deinitialization function for the MQTT library.

void IotMqtt_Cleanup( void );

This function frees resources taken in IotMqtt_Init. It should be called after closing all MQTT connections to clean up the MQTT library. After this function returns, IotMqtt_Init must be called again before calling any other MQTT function.

Warning
No thread-safety guarantees are provided for this function. Do not call this function if any MQTT connections are open!
See also
IotMqtt_Init