how to use CBOR decoding with ncs/zephyr

Hallo Nordic

i am working with nrf52832 and 840, with ncs v2.3.0 (working on updating to v2.5.0)

i want to pass a cbor file which holds some data from cloud to edg device, the adg device is the nrf52 that works with ncs.

i want to be able to decode the cbor file by value, not as a whole struct (in order to maintain flexibility in the data fields in the file).

1. is there some example for using zcbor or some other cbor library embedded in ncs ?

2. is it possible to decode a cbor file value by value and not as a whole struct ? (if so how can this be done, or what is the existing API for that ? )

hope to read from you soon 

best regards

Ziv

Related