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"` }
Click to show internal directories.
Click to hide internal directories.