nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
nrf_provisioning.h File Reference

nRF Provisioning API. More...

#include <stddef.h>
#include <modem/lte_lc.h>
#include <modem/modem_attest_token.h>

Go to the source code of this file.

Data Structures

struct  nrf_provisioning_callback_data
 Event data structure passed to the provisioning callback function. More...
 

Typedefs

typedef void(* nrf_provisioning_event_cb_t) (const struct nrf_provisioning_callback_data *event)
 Callback function type for provisioning state changes.
 

Enumerations

enum  nrf_provisioning_event {
  NRF_PROVISIONING_EVENT_START = 0x1 , NRF_PROVISIONING_EVENT_STOP , NRF_PROVISIONING_EVENT_DONE , NRF_PROVISIONING_EVENT_FAILED ,
  NRF_PROVISIONING_EVENT_NO_COMMANDS , NRF_PROVISIONING_EVENT_FAILED_TOO_MANY_COMMANDS , NRF_PROVISIONING_EVENT_FAILED_DEVICE_NOT_CLAIMED , NRF_PROVISIONING_EVENT_FAILED_WRONG_ROOT_CA ,
  NRF_PROVISIONING_EVENT_FAILED_NO_VALID_DATETIME , NRF_PROVISIONING_EVENT_NEED_LTE_DEACTIVATED , NRF_PROVISIONING_EVENT_NEED_LTE_ACTIVATED , NRF_PROVISIONING_EVENT_SCHEDULED_PROVISIONING ,
  NRF_PROVISIONING_EVENT_FATAL_ERROR
}
 nrf_provisioning callback events More...
 

Functions

int nrf_provisioning_init (nrf_provisioning_event_cb_t callback_handler)
 Initialize the provisioning library and registers a callback handler.
 
int nrf_provisioning_trigger_manually (void)
 Start provisioning immediately.
 
int nrf_provisioning_set_interval (int interval)
 Set provisioning interval for scheduled provisioning.
 

Detailed Description

nRF Provisioning API.

This library provides functionality for device provisioning over cellular networks. It handles communication with provisioning services to configure device credentials, certificates, and other configuration data securely.

The library supports both HTTP and CoAP transport protocols for communication with the provisioning service. It provides automatic certificate provisioning, scheduled provisioning with configurable intervals, and error handling with retry mechanisms.