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

◆ nrf_cloud_connect()

int nrf_cloud_connect ( void )

#include <include/net/nrf_cloud.h>

Connect to the cloud.

The NRF_CLOUD_EVT_TRANSPORT_CONNECTED event indicates that the cloud connection has been established. In any stage of connecting to the cloud, an NRF_CLOUD_EVT_ERROR might be received. If it is received before NRF_CLOUD_EVT_TRANSPORT_CONNECTED, the application may repeat the call to nrf_cloud_connect to try again.

Return values
Connectresult defined by enum nrf_cloud_connect_result.