nRF Connect SDK API 0.1.0
|
int nrf_cloud_fota_pending_job_validate | ( | enum nrf_cloud_fota_type *const | fota_type_out | ) |
#include <include/net/nrf_cloud.h>
Validate a pending FOTA installation before initializing this library. This function enables the application to control the reboot/reinit process during FOTA updates. If this function is not called directly by the application, it will be called internally when nrf_cloud_init is executed. For pending NRF_CLOUD_FOTA_MODEM_DELTA jobs the modem library must be initialized before calling this function, otherwise the job will be marked as completed without validation. Depends on.
embed:rst:inline :kconfig:option:`CONFIG_NRF_CLOUD_FOTA`
.
[out] | fota_type_out | FOTA type of pending job. NRF_CLOUD_FOTA_TYPE__INVALID if no pending job. Can be NULL. |
0 | Pending FOTA job processed. |
1 | Pending FOTA job processed and requires the application to perform a reboot or, for modem FOTA types, reinitialization of the modem library. |
-ENODEV | No pending/unvalidated FOTA job exists. |
-EIO | Error; failed to load FOTA job info from settings module. |
-ENOENT | Error; unknown FOTA job type. |