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

◆ nrf_provisioning_event_cb_t

typedef void(* nrf_provisioning_event_cb_t) (const struct nrf_provisioning_callback_data *event)

#include <include/net/nrf_provisioning.h>

Callback function type for provisioning state changes.

This callback is called whenever the provisioning state changes or events occur. The callback should not block for extended periods as it may affect provisioning performance and other system operations.

The callback is executed from a work queue context, so it can safely call most Zephyr APIs. However, blocking operations should be avoided or performed in a separate thread/workqueue.

Parameters
eventPointer to event data structure containing event type and associated data. The pointer and its contents are only valid during the callback execution.
Note
For NRF_PROVISIONING_EVENT_NEED_LTE_DEACTIVATED and NRF_PROVISIONING_EVENT_NEED_LTE_ACTIVATED events, the callback should handle the LTE state changes appropriately to allow the provisioning process to continue.