nRF Connect SDK API 2.8.0
|
int nrf_cloud_disconnect | ( | void | ) |
#include <include/net/nrf_cloud.h>
Disconnect from the cloud.
This API may be called any time after receiving the NRF_CLOUD_EVT_TRANSPORT_CONNECTED event. The NRF_CLOUD_EVT_TRANSPORT_DISCONNECTED event indicates that the disconnect has completed successfully.
0 | If successful. |
-EACCES | Cloud connection is not established; wait for NRF_CLOUD_EVT_TRANSPORT_CONNECTED. |