Documentation
¶
Overview ¶
SenML encoder and decoder to pare Sensor Markup Language
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OutputOptions ¶
type SenML ¶
type SenML struct {
XMLName *bool `json:"_,omitempty" xml:"sensml"`
Xmlns string `json:"_,omitempty" xml:"xmlns,attr"`
Records []SenMLRecord ` xml:"senml"`
}
type SenMLRecord ¶
type SenMLRecord struct {
XMLName *bool `json:"_,omitempty" xml:"senml"`
BaseName string `json:"bn,omitempty" xml:"bn,attr,omitempty"`
BaseTime float64 `json:"bt,omitempty" xml:"bt,attr,omitempty"`
BaseUnit string `json:"bu,omitempty" xml:"bu,attr,omitempty"`
BaseVersion int `json:"bver,omitempty" xml:"bver,attr,omitempty"`
Link string `json:"l,omitempty" xml:"l,attr,omitempty"`
Name string `json:"n,omitempty" xml:"n,attr,omitempty"`
Unit string `json:"u,omitempty" xml:"u,attr,omitempty"`
Time float64 `json:"t,omitempty" xml:"t,attr,omitempty"`
UpdateTime float64 `json:"ut,omitempty" xml:"ut,attr,omitempty"`
Value *float64 `json:"v,omitempty" xml:"v,attr,omitempty"`
StringValue *string `json:"vs,omitempty" xml:"vs,attr,omitempty"`
DataValue string `json:"vd,omitempty" xml:"vd,attr,omitempty"`
BoolValue *bool `json:"vb,omitempty" xml:"vb,attr,omitempty"`
Sum *float64 `json:"s,omitempty" xml:"s,attr,omitempty"`
}
type SenMLRecordCborLabel ¶
type SenMLRecordCborLabel struct {
BaseName string `codec:"-2"`
BaseTime float64 `codec:"-3"`
BaseUnit string `codec:"-4"`
BaseVersion int `codec:"-1"`
Name string `codec:"0"`
Unit string `codec:"1"`
Time float64 `codec:"6"`
UpdateTime float64 `codec:"7"`
Value *float64 `codec:"2"`
StringValue *string `codec:"3"`
DataValue string `codec:"8"`
BoolValue *bool `codec:"4"`
Sum *float64 `codec:"5,int"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.