nRF Connect SDK API 0.1.0
|
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.
Connect | result defined by enum nrf_cloud_connect_result. |