nRF Connect SDK API 0.1.0
|
int nrf_cloud_rest_shadow_state_update | ( | struct nrf_cloud_rest_context *const | rest_ctx, |
const char *const | device_id, | ||
const char *const | shadow_json | ||
) |
#include <include/net/nrf_cloud_rest.h>
Updates the device's "state" in the shadow via the UpdateDeviceState endpoint.
[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. |
[in] | shadow_json | Null-terminated JSON string to be written to the device's shadow. |
0 | If successful. Otherwise, a (negative) error code is returned. See embed:rst:inline :ref:`nrf_cloud_rest_failure`for details. |