nRF Connect SDK API 2.8.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's reported shadow section with information about the device, network, modem, SIM card, and FOTA capabilities.

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.