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

◆ nrf_provisioning_init()

int nrf_provisioning_init ( struct nrf_provisioning_mm_change * mmode,
struct nrf_provisioning_dm_change * dmode )

#include <include/net/nrf_provisioning.h>

Initializes the provisioning library and registers callback handlers.

Consequent calls will only change callback functions used. Feeding a null as a callback address means that the corresponding default callback function is taken into use.

Parameters
mmodeModem mode change callback. Used when data is written to modem.
dmodeDevice mode callback. Used when provisioning state changes.
Returns
<0 on error, 0 on success.