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

◆ nrf_cloud_rest_jitp()

int nrf_cloud_rest_jitp ( const sec_tag_t  nrf_cloud_sec_tag)

#include <include/net/nrf_cloud_rest.h>

Performs just-in-time provisioning (JITP) with nRF Cloud.

Note
After a device has been provisioned with nRF Cloud, it must be associated with an nRF Cloud account before using any other functions in this library.
Parameters
[in]nrf_cloud_sec_tagModem sec_tag containing nRF Cloud JITP credentials
Return values
0If successful; wait 30s before associating device with nRF Cloud account.
1Device is already provisioned. Otherwise, a (negative) error code is returned:
  • Any underlying socket or HTTP response error will be returned directly.
  • -ENODEV will be returned if device JITP immediately rejected.