RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

pkg/wakaama: implement IPSO sensor objects in LwM2M

Open leandrolanzieri opened this issue 9 months ago • 2 comments

Contribution description

This PR adds implementations for various IPSO sensor objects to LwM2M. This is (hopefully) a first step towards automatically exposing SAUL devices to LwM2M. The implemented objects are:

  • Barometer (ID 3315)
  • Current (ID 3317)
  • Humidity (ID 3304)
  • Illuminance (ID 3301)
  • Temperature (ID 3303)
  • Voltage (ID 3316)

Given that all objects share common properties and functionalities, there's a base IPSO sensor object that is used by the specific object implementations. The base implementation deals with resource access and instance allocation.

Testing procedure

All objects include documentation on their usage, you can include that code on examples/lwm2m to test.

Issues/PRs references

None

leandrolanzieri avatar May 07 '24 11:05 leandrolanzieri

Cool! There are some merge conflicts and static white space issues. Is this ready for review?

Teufelchen1 avatar May 08 '24 09:05 Teufelchen1

Cool! There are some merge conflicts and static white space issues. Is this ready for review?

I fixed the conflicts and ran uncrustify on all files. Yes, this is ready for review :)

leandrolanzieri avatar May 08 '24 10:05 leandrolanzieri

Hope I got all now

leandrolanzieri avatar Jun 04 '24 20:06 leandrolanzieri

Murdock results

:heavy_check_mark: PASSED

3d9649183c35f550e085b30c0f332b906b9b7942 pkg/wakaama/objects: add Voltmeter

Success Failures Total Runtime
10160 0 10161 15m:07s

Artifacts

riot-ci avatar Jun 05 '24 17:06 riot-ci

Thanks for the review!

leandrolanzieri avatar Jun 07 '24 08:06 leandrolanzieri