nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
nRF Cloud FOTA poll

Data Structures

struct  nrf_cloud_fota_poll_ctx
 

Typedefs

typedef void(* fota_reboot_handler_t) (enum nrf_cloud_fota_reboot_status status)
 Reboot event handler registered with the module to handle asynchronous reboot events from the module.
 
typedef void(* nrf_cloud_fota_poll_handler_t) (enum nrf_cloud_fota_status status, const char *const status_details)
 Status event handler registered with the module to handle asynchronous status events from the module.
 

Enumerations

enum  nrf_cloud_fota_reboot_status { FOTA_REBOOT_REQUIRED , FOTA_REBOOT_SUCCESS , FOTA_REBOOT_FAIL , FOTA_REBOOT_SYS_ERROR }
 

Functions

int nrf_cloud_fota_poll_init (struct nrf_cloud_fota_poll_ctx *ctx)
 Initialize nRF Cloud FOTA polling assistance. Must be called before any other module functions.
 
int nrf_cloud_fota_poll_process_pending (struct nrf_cloud_fota_poll_ctx *ctx)
 Process/validate a pending FOTA update job. This may initiate a reboot through the context's reboot function.
 
int nrf_cloud_fota_poll_process (struct nrf_cloud_fota_poll_ctx *ctx)
 Perform the following FOTA tasks: Report the status of an in progress FOTA job. Check for a queued FOTA job. Execute FOTA job. Save status and request reboot.
 

Detailed Description