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

◆ nrf_provisioning_trigger_manually()

int nrf_provisioning_trigger_manually ( void )

#include <include/net/nrf_provisioning.h>

Start provisioning immediately.

Triggers an immediate provisioning attempt, bypassing any scheduled intervals. This function returns immediately; the actual provisioning process is asynchronous and status is reported through the registered callback function.

The provisioning process includes:

  • Waiting for valid date/time (required for JWT generation)
  • Connecting to the provisioning service
  • Exchanging provisioning commands
  • Processing any received credentials or configuration
Note
If CONFIG_NRF_PROVISIONING_SCHEDULED is enabled, this will reschedule the next automatic provisioning attempt after completion.
Return values
0on success (provisioning started).
-EFAULTif the library is not initialized.