nRF Connect SDK API 2.8.99
|
int nrf_cloud_fota_job_start | ( | void | ) |
#include <include/net/nrf_cloud.h>
Start the FOTA update job. This function should be called after the NRF_CLOUD_EVT_FOTA_JOB_AVAILABLE event is received. This function should only be called if.
CONFIG_NRF_CLOUD_FOTA_AUTO_START_JOB
is disabled. Depends on
CONFIG_NRF_CLOUD_FOTA
.
0 | FOTA update job started successfully. |
-ENOTSUP | Error; CONFIG_NRF_CLOUD_FOTA_AUTO_START_JOBis enabled. |
-ENOENT | Error; FOTA update job information has not been received. |
-EINPROGRESS | Error; a FOTA update job is in progress. |
-EPIPE | Error; failed to start FOTA download. |