Senml
SenML (Sensor Measurement Lists) format for Go
Install / Use
/learn @objenious/SenmlREADME
senml
go get github.com/objenious/senml
Status: stable
This package implements the SenML format (Sensor Measurement Lists, formerly known as Sensor Markup Language), as defined in RFC8428.
This package is used in production on the Objenious LoRaWAN platform, and is maintained.
Warning: a breaking change was introduced in version 1.0.0, with the Record.Version being renamed to Record.BaseVersion.
Encoding/decoding
Encoding to/from JSON and XML is managed by the standard library.
s := senml.Pack{{Name:"foo", Value: senml.Float(32)}}
err := json.NewEncoder(w).Encode(s)
s := senml.Pack{}
err := json.NewDecoder(req.Body).Decode(&s)
TODO
- CBOR Representation
- EXI Representation
- Fragment Identification
Contribution guidelines
Contributions are welcome, as long as :
- unit tests & comments are included,
- no external package is added to the top-level package (but allowed in sub-packages).
Licence
MIT - See LICENSE
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
349.2kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
