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

◆ nrf_cloud_rest_shadow_device_status_update()

int nrf_cloud_rest_shadow_device_status_update ( struct nrf_cloud_rest_context *const rest_ctx,
const char *const device_id,
const struct nrf_cloud_device_status *const dev_status )

#include <include/net/nrf_cloud_rest.h>

Update the device status in the shadow.

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]dev_statusDevice status to be encoded.
Return values
0If successful. Otherwise, a (negative) error code is returned. See "nRF Cloud: Request Failure" for details.