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

◆ nrf_cloud_obj_shadow_update()

int nrf_cloud_obj_shadow_update ( struct nrf_cloud_obj *const  shadow_obj)

#include <include/net/nrf_cloud.h>

Update the device's shadow with the data from the provided object.

Parameters
[in]shadow_objObject containing data to be written to the device's shadow.
Return values
0If successful.
-EINVALError; invalid parameter.
-EACCESCloud connection is not established; wait for NRF_CLOUD_EVT_READY.
-EIOError; failed to encode data.
Returns
A negative value indicates an error.