|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| CMakeLists.txt | D | 11-Mar-2024 | 3.4 KiB | 130 | 121 |
| Kconfig | D | 11-Mar-2024 | 19.4 KiB | 660 | 542 |
| Kconfig.ipso | D | 11-Mar-2024 | 10.8 KiB | 369 | 291 |
| Kconfig.ucifi | D | 11-Mar-2024 | 2.8 KiB | 105 | 86 |
| README_lwm2m | D | 11-Mar-2024 | 1.2 KiB | 37 | 25 |
| buf_util.h | D | 11-Mar-2024 | 2.6 KiB | 129 | 91 |
| ipso_accelerometer.c | D | 11-Mar-2024 | 4.8 KiB | 161 | 116 |
| ipso_buzzer.c | D | 11-Mar-2024 | 7 KiB | 262 | 183 |
| ipso_current_sensor.c | D | 11-Mar-2024 | 7.3 KiB | 233 | 177 |
| ipso_filling_sensor.c | D | 11-Mar-2024 | 8.3 KiB | 247 | 194 |
| ipso_filling_sensor.h | D | 11-Mar-2024 | 1.1 KiB | 32 | 17 |
| ipso_generic_sensor.c | D | 11-Mar-2024 | 7.7 KiB | 242 | 183 |
| ipso_humidity_sensor.c | D | 11-Mar-2024 | 6.9 KiB | 223 | 171 |
| ipso_light_control.c | D | 11-Mar-2024 | 5.8 KiB | 206 | 147 |
| ipso_onoff_switch.c | D | 11-Mar-2024 | 6.6 KiB | 253 | 186 |
| ipso_pressure_sensor.c | D | 11-Mar-2024 | 7 KiB | 226 | 174 |
| ipso_push_button.c | D | 11-Mar-2024 | 5.1 KiB | 190 | 134 |
| ipso_temp_sensor.c | D | 11-Mar-2024 | 6.9 KiB | 226 | 171 |
| ipso_timer.c | D | 11-Mar-2024 | 9.6 KiB | 370 | 275 |
| ipso_voltage_sensor.c | D | 11-Mar-2024 | 7.4 KiB | 234 | 177 |
| lwm2m_engine.c | D | 11-Mar-2024 | 23.7 KiB | 1,021 | 785 |
| lwm2m_engine.h | D | 11-Mar-2024 | 10.6 KiB | 310 | 61 |
| lwm2m_message_handling.c | D | 11-Mar-2024 | 85.4 KiB | 3,443 | 2,644 |
| lwm2m_message_handling.h | D | 11-Mar-2024 | 3.2 KiB | 84 | 54 |
| lwm2m_obj_access_control.c | D | 11-Mar-2024 | 11.2 KiB | 443 | 331 |
| lwm2m_obj_access_control.h | D | 11-Mar-2024 | 2.9 KiB | 70 | 11 |
| lwm2m_obj_binaryappdata.c | D | 11-Mar-2024 | 4.1 KiB | 126 | 77 |
| lwm2m_obj_binaryappdata.h | D | 11-Mar-2024 | 662 | 23 | 9 |
| lwm2m_obj_connmon.c | D | 11-Mar-2024 | 6.1 KiB | 194 | 148 |
| lwm2m_obj_device.c | D | 11-Mar-2024 | 9.6 KiB | 307 | 223 |
| lwm2m_obj_event_log.c | D | 11-Mar-2024 | 3 KiB | 107 | 66 |
| lwm2m_obj_event_log.h | D | 11-Mar-2024 | 573 | 23 | 9 |
| lwm2m_obj_firmware.c | D | 11-Mar-2024 | 14.2 KiB | 505 | 397 |
| lwm2m_obj_firmware_pull.c | D | 11-Mar-2024 | 1.5 KiB | 83 | 59 |
| lwm2m_obj_gateway.c | D | 11-Mar-2024 | 4.9 KiB | 164 | 113 |
| lwm2m_obj_gateway.h | D | 11-Mar-2024 | 496 | 21 | 7 |
| lwm2m_obj_location.c | D | 11-Mar-2024 | 3.3 KiB | 121 | 84 |
| lwm2m_obj_portfolio.c | D | 11-Mar-2024 | 4.1 KiB | 129 | 84 |
| lwm2m_obj_security.c | D | 11-Mar-2024 | 7.8 KiB | 240 | 186 |
| lwm2m_obj_server.c | D | 11-Mar-2024 | 12 KiB | 371 | 299 |
| lwm2m_obj_swmgmt.c | D | 11-Mar-2024 | 21.3 KiB | 798 | 595 |
| lwm2m_object.h | D | 11-Mar-2024 | 24.2 KiB | 846 | 627 |
| lwm2m_observation.c | D | 11-Mar-2024 | 41.2 KiB | 1,655 | 1,245 |
| lwm2m_observation.h | D | 11-Mar-2024 | 3.1 KiB | 92 | 49 |
| lwm2m_pull_context.c | D | 11-Mar-2024 | 11.3 KiB | 446 | 335 |
| lwm2m_pull_context.h | D | 11-Mar-2024 | 750 | 29 | 12 |
| lwm2m_rd_client.c | D | 11-Mar-2024 | 38.2 KiB | 1,577 | 1,175 |
| lwm2m_rd_client.h | D | 11-Mar-2024 | 2.4 KiB | 60 | 18 |
| lwm2m_registry.c | D | 11-Mar-2024 | 51.2 KiB | 2,257 | 1,784 |
| lwm2m_registry.h | D | 11-Mar-2024 | 8.7 KiB | 255 | 62 |
| lwm2m_resource_ids.h | D | 11-Mar-2024 | 1.9 KiB | 51 | 38 |
| lwm2m_rw_cbor.c | D | 11-Mar-2024 | 12.7 KiB | 553 | 399 |
| lwm2m_rw_cbor.h | D | 11-Mar-2024 | 396 | 19 | 8 |
| lwm2m_rw_json.c | D | 11-Mar-2024 | 23.3 KiB | 1,022 | 745 |
| lwm2m_rw_json.h | D | 11-Mar-2024 | 2.1 KiB | 55 | 8 |
| lwm2m_rw_link_format.c | D | 11-Mar-2024 | 13.6 KiB | 658 | 481 |
| lwm2m_rw_link_format.h | D | 11-Mar-2024 | 645 | 30 | 17 |
| lwm2m_rw_oma_tlv.c | D | 11-Mar-2024 | 22.6 KiB | 1,053 | 771 |
| lwm2m_rw_oma_tlv.h | D | 11-Mar-2024 | 2.3 KiB | 64 | 14 |
| lwm2m_rw_plain_text.c | D | 11-Mar-2024 | 10.8 KiB | 485 | 329 |
| lwm2m_rw_plain_text.h | D | 11-Mar-2024 | 2.3 KiB | 64 | 13 |
| lwm2m_rw_senml_cbor.c | D | 11-Mar-2024 | 25.7 KiB | 1,112 | 780 |
| lwm2m_rw_senml_cbor.h | D | 11-Mar-2024 | 870 | 28 | 15 |
| lwm2m_rw_senml_json.c | D | 11-Mar-2024 | 41.3 KiB | 1,691 | 1,325 |
| lwm2m_rw_senml_json.h | D | 11-Mar-2024 | 1.1 KiB | 33 | 15 |
| lwm2m_senml_cbor.cddl | D | 11-Mar-2024 | 712 | 32 | 27 |
| lwm2m_senml_cbor.patch | D | 11-Mar-2024 | 13.5 KiB | 260 | 225 |
| lwm2m_senml_cbor_decode.c | D | 11-Mar-2024 | 8.6 KiB | 267 | 209 |
| lwm2m_senml_cbor_decode.h | D | 11-Mar-2024 | 665 | 32 | 16 |
| lwm2m_senml_cbor_encode.c | D | 11-Mar-2024 | 8.3 KiB | 263 | 205 |
| lwm2m_senml_cbor_encode.h | D | 11-Mar-2024 | 664 | 32 | 16 |
| lwm2m_senml_cbor_regenerate.sh | D | 11-Mar-2024 | 544 | 21 | 12 |
| lwm2m_senml_cbor_types.h | D | 11-Mar-2024 | 2.6 KiB | 142 | 108 |
| lwm2m_shell.c | D | 11-Mar-2024 | 13.7 KiB | 576 | 486 |
| lwm2m_util.c | D | 11-Mar-2024 | 10.2 KiB | 579 | 398 |
| lwm2m_util.h | D | 11-Mar-2024 | 1.4 KiB | 49 | 15 |
| ucifi_battery.c | D | 11-Mar-2024 | 5.2 KiB | 154 | 112 |
| ucifi_battery.h | D | 11-Mar-2024 | 973 | 29 | 15 |
| ucifi_lpwan.c | D | 11-Mar-2024 | 7.9 KiB | 182 | 129 |
| ucifi_lpwan.h | D | 11-Mar-2024 | 1.7 KiB | 44 | 30 |
README_lwm2m
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
19sh lwm2m_senml_cbor_regenerate.sh
20```
21
22The above command also applies the lwm2m_senml_cbor.patch patch file.
23If 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
24
25```console
26git am -3 < lwm2m_senml_cbor.patch
27```
28
29The 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
30
31```console
32git format-patch --stdout HEAD~1.. > lwm2m_senml_cbor.patch
33```
34
35The default value of the number of maximum allowed records doesn't really matter as it's replaced
36with a Kconfig option.
37