nRF Connect SDK API 0.1.0
|
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.
[in] | shadow_obj | Object containing data to be written to the device's shadow. |
0 | If successful. |
-EINVAL | Error; invalid parameter. |
-EACCES | Cloud connection is not established; wait for NRF_CLOUD_EVT_READY. |
-EIO | Error; failed to encode data. |