#include <include/net/nrf_cloud_rest.h>
Request shadow data using a JSONata expression. For example, to request the reported device info section, the transform would be: "state.reported.device.deviceInfo".
- Note
- Consider the size of the response data when making shadow requests so that it does not exceed rx_buf_len in nrf_cloud_rest_context.
- 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. |
| transform | The JSONata expression. |
- Return values
-
0 | If successful. Otherwise, a (negative) error code is returned. See "nRF Cloud: Request Failure" for details. |