#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_tag | Modem sec_tag containing nRF Cloud JITP credentials |
- Return values
-
0 | If successful; wait 30s before associating device with nRF Cloud account. |
1 | Device 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.
|