Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/absmach/senml
RFC 8428 Sensor Measurement Lists (SenML) implementation
https://github.com/absmach/senml
go golang senml
Last synced: 2 months ago
JSON representation
RFC 8428 Sensor Measurement Lists (SenML) implementation
- Host: GitHub
- URL: https://github.com/absmach/senml
- Owner: absmach
- License: apache-2.0
- Created: 2019-11-27T18:42:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-05T14:28:42.000Z (7 months ago)
- Last Synced: 2024-07-05T18:50:21.074Z (7 months ago)
- Topics: go, golang, senml
- Language: Go
- Size: 333 KB
- Stars: 22
- Watchers: 12
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SenML
[![coverage][cov-badge]][cov-url]
[![go report card][grc-badge]][grc-url]
[![license][license]](LICENSE)This repository contains a lightweight implementation of [RFC 8428 Sensor Measurement Lists (SenML)](https://tools.ietf.org/html/rfc8428)
## Codec
The following formats are supported:
- JSON
- XML
- CBOR## Normalization
Normalized (resolved) SenML Pack consists of resolved SenML Records. A SenML Record is referred to as "resolved" if it does not contain any base values, i.e., labels starting with the character "b", except for Base Version fields, and has no relative times.[*](https://tools.ietf.org/html/rfc8428#section-4.6)
## Validation
Valid SenML Record is the record with valid all the required fields and `exactly one` value field. Base values, if present, must be valid, as well. The Pack is valid if all the Records are valid and have the same Base Version.
All SenML Records in a Pack must have the same version number. This is typically done by adding a Base Version field to only the first Record in the Pack or by using the default value.[*](https://tools.ietf.org/html/rfc8428#section-4.4)[cov-badge]: https://codecov.io/gh/absmach/senml/branch/update/graph/badge.svg?token=j7GNzLmEN5
[cov-url]: https://codecov.io/gh/absmach/senml
[grc-badge]: https://goreportcard.com/badge/github.com/absmach/senml
[grc-url]: https://goreportcard.com/report/github.com/absmach/senml
[license]: https://img.shields.io/badge/license-Apache%20v2.0-blue.svg