Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.44 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.44 KB

SenML

coverage go report card license

This repository contains a lightweight implementation of RFC 8428 Sensor Measurement Lists (SenML)

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.*

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.*