Documentation
¶
Index ¶
- Variables
- type DPT_1001
- type DPT_1002
- type DPT_1003
- type DPT_1008
- type DPT_1009
- type DPT_1010
- type DPT_1017
- type DPT_12001
- type DPT_13001
- type DPT_13002
- type DPT_13010
- type DPT_13011
- type DPT_13012
- type DPT_13013
- type DPT_13014
- type DPT_13015
- type DPT_5001
- type DPT_5003
- type DPT_5004
- type DPT_5010
- type DPT_9001
- type DPT_9004
- type DPT_9005
- type DPT_9007
- type DatapointMeta
- type DatapointValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLength = errors.New("Given application data has invalid length")
ErrInvalidLength is returned when the application data has unexpected length.
Functions ¶
This section is empty.
Types ¶
type DatapointMeta ¶
type DatapointMeta interface { // Unit returns the unit of this datapoint type or empty string if it doesn't have a unit. Unit() string }
DatapointMeta gives meta information about a datapoint type.
type DatapointValue ¶
type DatapointValue interface { // Pack the datapoint to a byte array. Pack() []byte // Unpack a the datapoint value from a byte array. Unpack(data []byte) error }
A DatapointValue is a value of a datapoint.
Click to show internal directories.
Click to hide internal directories.