Registry / serialization / mainflux-senml

mainflux-senml

JSON →
library1.5.0gogounverified

Go implementation of the SenML (Sensor Measurement Lists) data model.

go get github.com/mainflux/senml
INSTALL
IMPORT
SIG · MAINFLUX-SENML
M
mainflux-senml
serializationgov1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

senml
github.com/mainflux/senml

Create a SenML pack and marshal it to JSON.

import "github.com/mainflux/senml" pack := senml.Pack{BaseName: "urn:dev:ow:10e2073a0108006", BaseUnit: "Cel"} pack.Records = append(pack.Records, senml.Record{Value: 23.5}) data, _ := json.Marshal(pack)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mainflux-senml — go get mainflux-senml · libregistry