nRF Connect SDK API 2.8.0
|
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.
0 | If successful. |
-ENOTCONN | if the device is not connected to an IoT Hub. |
-ENXIO | if the MQTT library reported an error. |