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

◆ nrf_cloud_rest_fota_job_get()

int nrf_cloud_rest_fota_job_get ( struct nrf_cloud_rest_context *const  rest_ctx,
const char *const  device_id,
struct nrf_cloud_fota_job_info *const  job 
)

#include <include/net/nrf_cloud_rest.h>

Requests nRF Cloud FOTA job info for the specified device.

Parameters
[in,out]rest_ctxContext for communicating with nRF Cloud's REST API.
[in]device_idNull-terminated, unique device ID registered with nRF Cloud.
[out]jobOptional; parsed job info. If no job exists, type will be set to invalid. If a job exists, user must call nrf_cloud_rest_fota_job_free to free the memory allocated by this function. If NULL, user should inspect the response buffer of nrf_cloud_rest_context.
Return values
0If successful. Otherwise, a (negative) error code is returned. See
embed:rst:inline :ref:`nrf_cloud_rest_failure` 
for details.