![]() |
nRF Connect SDK API 3.3.99
|
| int nrf_cloud_fota_poll_process | ( | struct nrf_cloud_fota_poll_ctx * | ctx | ) |
#include <include/net/nrf_cloud_fota_poll.h>
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.
The function will be blocking during an update image download if the error_fn callback is not provided. If the error_fn callback is provided, the function will be non-blocking and the user will receive error events asynchronously.
| [in] | ctx | Pointer to context used for FOTA polling operations. |
| 0 | Only applicable if in non-blocking mode. Indicates successful start of FOTA processing. |
| -EINVAL | Invalid ctx or module is not initialized. |
| -ENOTRECOVERABLE | Error performing FOTA action. |
| -EBUSY | A reboot was requested but not performed by the application. |
| -EFAULT | A FOTA job was not successful. |
| -ENOENT | A FOTA job has finished and its status has been reported to the cloud. |
| -EAGAIN | No FOTA job exists. |
| -ETIMEDOUT | The FOTA job check timed out. Retry later. |
| -ENETDOWN | The network is down. |