appName in shadow register using CoAP protocol - nRFCloud

Hello,

I would like to ask how to update the appName field in the shadow register on the nRFCloud, using CoAP protocol.

I was able to change the appVersion by passing a string to nrf_cloud_coap_connect(...); function, but how can I change the value of the appName?

As in the following image

Thank you

Parents Reply
  • Hello

    Using nrf_cloud_coap_shadow_get() it only returns the "control" and "config" fields within the reported field of the shadow register.

    The appName field is included in the "device" field of the shadow.

    Moreover, the "device" field does not updated from my application code. 
    I have enabled configs such as the following to update the "device" field of the shadow with the relevant information.

    CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS_CONN_INF=y      # Include connection information with device status
    CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS_NETWORK=y       # Include network status information with device status
    CONFIG_NRF_CLOUD_SEND_DEVICE_STATUS_SIM=y           # Include SIM card information with device status
    CONFIG_NRF_CLOUD_SEND_SERVICE_INFO_FOTA=y           # Add supported FOTA types to the "serviceInfo" section
    CONFIG_MODEM_INFO=y
    CONFIG_MODEM_INFO_ADD_NETWORK=y
    CONFIG_MODEM_INFO_ADD_DEVICE=y
    CONFIG_MODEM_INFO_ADD_DATE_TIME=y
    CONFIG_MODEM_INFO_ADD_SIM=y
    CONFIG_MODEM_INFO_ADD_SIM_ICCID=y
    CONFIG_MODEM_INFO_ADD_SIM_IMSI=y

    Should the nrf_cloud_coap_shadow_get() return the "device" field as well?
    In this case how can I update the "device" field?

    Thank you

Children
No Data
Related