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

◆ nrf_cloud_coap_shadow_configured_info_update()

int nrf_cloud_coap_shadow_configured_info_update ( const char *const app_ver)

#include <include/net/nrf_cloud_coap.h>

Update the device's shadow with current info for all configured sections.

This function sends updated info to nRF Cloud for all sections of the shadow that are configured in Kconfig.

Possible sections is set by:

  • CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS
  • CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS_NETWORK
  • CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS_SIM
  • CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS_CONN_INF
  • CONFIG_NRF_CLOUD_SEND_SERVICE_INFO_FOTA
Parameters
app_verVersion to report to the shadow; can be NULL.
Return values
-EACCESDevice does not have a valid nRF Cloud CoAP connection.
-ENODEVNo info sections are enabled in Kconfig.
Returns
0 If successful, non-zero 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.