![]() |
nRF Connect SDK API 3.3.99
|
| int nrf_provisioning_set_interval | ( | int | interval | ) |
#include <include/net/nrf_provisioning.h>
Set provisioning interval for scheduled provisioning.
Configures the interval between automatic provisioning attempts when CONFIG_NRF_PROVISIONING_SCHEDULED is enabled. If scheduled provisioning is active, this will reschedule the next attempt based on the new interval.
The interval is persistent and stored in settings. It will be restored across device reboots. The actual provisioning time may include a random spread to distribute server load (controlled by CONFIG_NRF_PROVISIONING_SPREAD_S).
| interval | Provisioning interval in seconds. Must be greater than or equal to 0. Values less than the minimum interval may be adjusted internally. A value of 0 disables scheduled provisioning. |
| 0 | on success. |
| -EFAULT | if the library is not initialized or unable to convert interval to string format. |
| -EINVAL | if interval is negative. |
| -ENOTSUP | if CONFIG_NRF_PROVISIONING_SCHEDULED is not enabled. |
| -ENOSTR | if unable to store interval in settings. |