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

◆ nrf_cloud_coap_shadow_device_status_update()

int nrf_cloud_coap_shadow_device_status_update ( const struct nrf_cloud_device_status *const  dev_status)

#include <include/net/nrf_cloud_coap.h>

Update the device status in the shadow's reported state section.

Parameters
[in]dev_statusDevice status to be encoded.
Return values
-EACCESDevice does not have a valid nRF Cloud CoAP connection.
Returns
0 If successful, nonzero if failed. Negative values are device-side errors defined in errno.h. Positive values are cloud-side errors (CoAP result codes) defined in zephyr/net/coap.h.