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

◆ nrf_cloud_disconnect()

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.

Return values
0If successful.
-EACCESCloud connection is not established; wait for NRF_CLOUD_EVT_TRANSPORT_CONNECTED.
Returns
A negative value indicates an error.