Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2019 Changes in this version + func Encode(s SenML, format Format, options OutputOptions) ([]byte, error) + func IsValid(senml SenML) bool + type Format int + const CBOR + const CSV + const JSON + const JSONLINE + const LINEP + const MPACK + const XML + type OutputOptions struct + CborLabel bool + PrettyPrint bool + Topic string + type SenML struct + Records []SenMLRecord + XMLName *bool + Xmlns string + func Decode(msg []byte, format Format) (SenML, error) + func Normalize(senml SenML) SenML + type SenMLRecord struct + BaseName string + BaseTime float64 + BaseUnit string + BaseVersion int + BoolValue *bool + DataValue string + Link string + Name string + StringValue *string + Sum *float64 + Time float64 + Unit string + UpdateTime float64 + Value *float64 + XMLName *bool + type SenMLRecordCborLabel struct + BaseName string + BaseTime float64 + BaseUnit string + BaseVersion int + BoolValue *bool + DataValue string + Name string + StringValue *string + Sum *float64 + Time float64 + Unit string + UpdateTime float64 + Value *float64