#include <include/net/nrf_cloud_rest.h>
Requests nRF Cloud FOTA job info for the specified device.
- Parameters
-
[in,out] | rest_ctx | Context for communicating with nRF Cloud's REST API. |
[in] | device_id | Null-terminated, unique device ID registered with nRF Cloud. |
[out] | job | Optional; 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
-
0 | If successful. Otherwise, a (negative) error code is returned. See embed:rst:inline :ref:`nrf_cloud_rest_failure` for details. |