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

◆ nrf_cloud_fota_poll_process_pending()

int nrf_cloud_fota_poll_process_pending ( struct nrf_cloud_fota_poll_ctx ctx)

#include <include/net/nrf_cloud_fota_poll.h>

Process/validate a pending FOTA update job. This may initiate a reboot through the context's reboot function.

Parameters
[in]ctxPointer to context used for FOTA polling operations.
Return values
-EINVALInvalid ctx or module is not initialized.
Returns
If successful, the pending FOTA job type is returned nrf_cloud_fota_type. NRF_CLOUD_FOTA_TYPE__INVALID indicates no pending FOTA job.