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

◆ nrf_cloud_coap_fota_job_update()

int nrf_cloud_coap_fota_job_update ( const char *const job_id,
const enum nrf_cloud_fota_status status,
const char *const details )

#include <include/net/nrf_cloud_coap.h>

Update the status of the specified nRF Cloud FOTA job.

Parameters
[in]job_idNull-terminated FOTA job identifier.
[in]statusStatus of the FOTA job.
[in]detailsNull-terminated string containing details of the job, such as an error description.
Return values
-EACCESDevice does not have a valid nRF Cloud CoAP connection.
Returns
0 If successful, nonzero if failed. Negative values are device-side errors defined in errno.h. Positive values are cloud-side errors (CoAP result codes) defined in zephyr/net/coap.h.