![]() |
nRF Connect SDK API 3.3.99
|
| int nrf_provisioning_init | ( | nrf_provisioning_event_cb_t | callback_handler | ) |
#include <include/net/nrf_provisioning.h>
Initialize the provisioning library and registers a callback handler.
This function must be called before any other provisioning API functions. It sets up the necessary resources and registers the callback for receiving provisioning events. The initialization process includes:
| callback_handler | Pointer to a callback function to receive provisioning notifications. The callback will be called from a work queue context. Must not be NULL. |
| 0 | on success. |
| -EINVAL | if callback_handler is NULL. |
| -EALREADY | if the library is already initialized. |