nRF Connect SDK API 0.1.0
|
int nrf_cloud_coap_connect | ( | const char *const | app_ver | ) |
#include <include/net/nrf_cloud_coap.h>
Connect to and obtain authorization to access the nRF Cloud CoAP server.
This function must return 0 indicating success so that the other functions below, other than nrf_cloud_coap_disconnect(), will not immediately return an error when called.
app_ver | Version to report to the shadow; can be NULL. |
-EACCES | if nrf_cloud_coap_init has not been called. |