nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ azure_iot_hub_disconnect()

int azure_iot_hub_disconnect ( void  )

#include <include/net/azure_iot_hub.h>

Disconnect from Azure IoT Hub. Calling this function initiates the disconnection procedure, and the event AZURE_IOT_HUB_EVT_DISCONNECTED is received when it is completed.

Return values
0If successful.
-ENOTCONNif the device is not connected to an IoT Hub.
-ENXIOif the MQTT library reported an error.