nRF Connect SDK API 2.8.0
|
int nrf_cloud_pending_fota_job_process | ( | struct nrf_cloud_settings_fota_job *const | job, |
bool *const | reboot_required ) |
#include <include/net/nrf_cloud.h>
Process/validate a pending FOTA update job. Typically the job information is read from non-volatile storage on startup. This function is intended to be used by custom REST-based FOTA implementations. It is called internally if.
CONFIG_NRF_CLOUD_FOTA
is enabled. 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.
[in] | job | FOTA job state information. |
[out] | reboot_required | A reboot is needed to complete a FOTA update. |
0 | A Pending FOTA job has been processed. |
-ENODEV | No pending/unvalidated FOTA job exists. |
-ENOENT | Error; unknown FOTA job type. |
-ESRCH | Error; not configured for FOTA job type. |