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

◆ nrf_cloud_rest_fota_job_update()

int nrf_cloud_rest_fota_job_update ( struct nrf_cloud_rest_context *const rest_ctx,
const char *const device_id,
const char *const job_id,
const enum nrf_cloud_fota_status status,
const char *const details )

#include <include/net/nrf_cloud_rest.h>

Updates the status of the specified nRF Cloud FOTA job.

Parameters
[in,out]rest_ctxContext for communicating with nRF Cloud's REST API.
[in]device_idNull-terminated, unique device ID registered with nRF Cloud.
[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
0If successful. Otherwise, a (negative) error code is returned. See "nRF Cloud: Request Failure" for details.