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

◆ nrf_cloud_fota_job_start()

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` 

.

Return values
0FOTA update job started successfully.
-ENOTSUPError;
embed:rst:inline :kconfig:option:`CONFIG_NRF_CLOUD_FOTA_AUTO_START_JOB` 
is enabled.
-ENOENTError; FOTA update job information has not been received.
-EINPROGRESSError; a FOTA update job is in progress.
-EPIPEError; failed to start FOTA download.
Returns
A negative value indicates an error starting the job.