nRF Connect SDK API 0.1.0
|
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.
embed:rst:inline :kconfig:option:`CONFIG_NRF_CLOUD_FOTA_AUTO_START_JOB`
is disabled. Depends on
embed:rst:inline :kconfig:option:`CONFIG_NRF_CLOUD_FOTA`
.
0 | FOTA update job started successfully. |
-ENOTSUP | Error; embed:rst:inline :kconfig:option:`CONFIG_NRF_CLOUD_FOTA_AUTO_START_JOB`is 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. |