Reading the local shadow

Hi,

I'm currently working on an application with the nRF9151, and will use the shadow concept to change parameters used by a device externally connected to the nRF9151.

Intended behavior;
When changing the desired state in nRF Cloud for the nrf9151, the nrf9151 will receive the delta and update its actual and reported state. The reported state will locally on the nrf9151 be possible to read and send to the externally connected device for further use. The nrf9151 should be context-unaware of the content of the shadow as additional keys could be added to the shadow without having to update the nrf9151 code base.

Challenge;
Using the nRF Multi Cellular sample, I'm able to read the state of known shadow config keys, e.g. counterEnable using nrf_cloud_obj_bool_get as long as the key is known. In shadow_config_delta_process I'm able to read the delta received when desired state is changed.

How can I read the full desired state and/or the reported state locally on the device without knowing the keys, and not only the delta during changes?



Thank you in advance,
Mats

Related