1LwM2M Client in Zephyr 2---------------------- 3 4### SenML CBOR 5 6SenML CBOR content format support takes advantage of the Zcbor library's capability of generating 7domain specific code. To generate the SenML encoder and decoder the following CDDL file 8is used as an input for the generator: 9 10.. include:: lwm2m_senml.cddl 11 :code: txt 12 13The CDDL description is based on the RFC 8428 - Sensor Measurement Lists (SenML). For further 14details please see the chapter 11 - CDDL. 15 16To generate the encoder and decoder: 17 18```console 19pip install --upgrade zcbor 20sh lwm2m_senml_cbor_regenerate.sh 21``` 22 23The above command also applies the lwm2m_senml_cbor.patch patch file. 24If the patch fails to apply, you can attempt to use the 3-way merge capabilities by committing the un-patched changes (i.e. up to and including the clang-format), and the running 25 26```console 27git am -3 < lwm2m_senml_cbor.patch 28``` 29 30The patch was created by, committing the unpatched changes, then committing the desired patches in a subsequent commit, then creating the patch file with the command 31 32```console 33git format-patch --stdout HEAD~1.. > lwm2m_senml_cbor.patch 34``` 35 36The default value of the number of maximum allowed records doesn't really matter as it's replaced 37with a Kconfig option. 38