Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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