Subject: [core] Review and implementation of draft-ietf-core-senml-versions-01

From: Ari Keränen <[email-masked]>
Date: Mon, 23 Nov 2020 16:06:53 +0000

Hi all,

As discussed in the CoRE meeting last week, I reviewed and implemented the draft-ietf-core-senml-versions-01. It's a rather short draft so both implementation and review were essentially done between the sessions that day. For me the draft looks good to go forward.

My implementation is currently running as a web service if you want to play around with it. You can try for example:

curl -X POST http://wishi.nomadiclab.com:8086/senml-validate -d '[{"bver": 26, "v":42,"bn":"foo","bu":"km/h"}]'

You get either 200 OK or error with description depending on if the SenML pack was valid or not.

If you want to resolve the secondary units you can use the senml-resolve-units functionality:
curl -X POST http://wishi.nomadiclab.com:8086/senml-resolve-units -d '[{"bver": 26, "v":42,"bn":"foo","bu":"km/h"},{"v":44,"t":2}]'

(there's also senml-resolve if you want to resolve base values)

Cheers,
Ari