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

◆ nrf_cloud_fota_pending_job_validate()

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` 

.

Parameters
[out]fota_type_outFOTA type of pending job. NRF_CLOUD_FOTA_TYPE__INVALID if no pending job. Can be NULL.
Return values
0Pending FOTA job processed.
1Pending FOTA job processed and requires the application to perform a reboot or, for modem FOTA types, reinitialization of the modem library.
-ENODEVNo pending/unvalidated FOTA job exists.
-EIOError; failed to load FOTA job info from settings module.
-ENOENTError; unknown FOTA job type.