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

◆ nrf_cloud_pending_fota_job_process()

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.

Parameters
[in]jobFOTA job state information.
[out]reboot_requiredA reboot is needed to complete a FOTA update.
Return values
0A Pending FOTA job has been processed.
-ENODEVNo pending/unvalidated FOTA job exists.
-ENOENTError; unknown FOTA job type.
-ESRCHError; not configured for FOTA job type.