Documentation ¶
Index ¶
- Constants
- func NewGet() cc.Command
- func NewReport() cc.Command
- func NewSupportedGetScale() cc.Command
- func NewSupportedGetSensor() cc.Command
- func NewSupportedScaleReport() cc.Command
- func NewSupportedSensorReport() cc.Command
- type Get
- type Report
- type SupportedGetScale
- func (cmd SupportedGetScale) CommandClassID() cc.CommandClassID
- func (cmd SupportedGetScale) CommandID() cc.CommandID
- func (cmd SupportedGetScale) CommandIDString() string
- func (cmd *SupportedGetScale) MarshalBinary() (payload []byte, err error)
- func (cmd *SupportedGetScale) UnmarshalBinary(data []byte) error
- type SupportedGetSensor
- func (cmd SupportedGetSensor) CommandClassID() cc.CommandClassID
- func (cmd SupportedGetSensor) CommandID() cc.CommandID
- func (cmd SupportedGetSensor) CommandIDString() string
- func (cmd *SupportedGetSensor) MarshalBinary() (payload []byte, err error)
- func (cmd *SupportedGetSensor) UnmarshalBinary(data []byte) error
- type SupportedScaleReport
- func (cmd SupportedScaleReport) CommandClassID() cc.CommandClassID
- func (cmd SupportedScaleReport) CommandID() cc.CommandID
- func (cmd SupportedScaleReport) CommandIDString() string
- func (cmd *SupportedScaleReport) MarshalBinary() (payload []byte, err error)
- func (cmd *SupportedScaleReport) UnmarshalBinary(data []byte) error
- type SupportedSensorReport
- func (cmd SupportedSensorReport) CommandClassID() cc.CommandClassID
- func (cmd SupportedSensorReport) CommandID() cc.CommandID
- func (cmd SupportedSensorReport) CommandIDString() string
- func (cmd *SupportedSensorReport) MarshalBinary() (payload []byte, err error)
- func (cmd *SupportedSensorReport) UnmarshalBinary(data []byte) error
Constants ¶
View Source
const CommandGet cc.CommandID = 0x04
View Source
const CommandReport cc.CommandID = 0x05
View Source
const CommandSupportedGetScale cc.CommandID = 0x03
View Source
const CommandSupportedGetSensor cc.CommandID = 0x01
View Source
const CommandSupportedScaleReport cc.CommandID = 0x06
View Source
const CommandSupportedSensorReport cc.CommandID = 0x02
Variables ¶
This section is empty.
Functions ¶
func NewSupportedGetScale ¶
func NewSupportedGetSensor ¶
func NewSupportedScaleReport ¶
Types ¶
type Get ¶
<no value>
func (Get) CommandClassID ¶
func (cmd Get) CommandClassID() cc.CommandClassID
func (Get) CommandIDString ¶
func (*Get) MarshalBinary ¶
func (*Get) UnmarshalBinary ¶
type Report ¶
type Report struct { SensorType byte Level struct { Size byte Scale byte Precision byte } SensorValue []byte }
<no value>
func (Report) CommandClassID ¶
func (cmd Report) CommandClassID() cc.CommandClassID
func (Report) CommandIDString ¶
func (*Report) MarshalBinary ¶
func (*Report) UnmarshalBinary ¶
type SupportedGetScale ¶
type SupportedGetScale struct {
SensorType byte
}
<no value>
func (SupportedGetScale) CommandClassID ¶
func (cmd SupportedGetScale) CommandClassID() cc.CommandClassID
func (SupportedGetScale) CommandID ¶
func (cmd SupportedGetScale) CommandID() cc.CommandID
func (SupportedGetScale) CommandIDString ¶
func (cmd SupportedGetScale) CommandIDString() string
func (*SupportedGetScale) MarshalBinary ¶
func (cmd *SupportedGetScale) MarshalBinary() (payload []byte, err error)
func (*SupportedGetScale) UnmarshalBinary ¶
func (cmd *SupportedGetScale) UnmarshalBinary(data []byte) error
type SupportedGetSensor ¶
type SupportedGetSensor struct { }
<no value>
func (SupportedGetSensor) CommandClassID ¶
func (cmd SupportedGetSensor) CommandClassID() cc.CommandClassID
func (SupportedGetSensor) CommandID ¶
func (cmd SupportedGetSensor) CommandID() cc.CommandID
func (SupportedGetSensor) CommandIDString ¶
func (cmd SupportedGetSensor) CommandIDString() string
func (*SupportedGetSensor) MarshalBinary ¶
func (cmd *SupportedGetSensor) MarshalBinary() (payload []byte, err error)
func (*SupportedGetSensor) UnmarshalBinary ¶
func (cmd *SupportedGetSensor) UnmarshalBinary(data []byte) error
type SupportedScaleReport ¶
<no value>
func (SupportedScaleReport) CommandClassID ¶
func (cmd SupportedScaleReport) CommandClassID() cc.CommandClassID
func (SupportedScaleReport) CommandID ¶
func (cmd SupportedScaleReport) CommandID() cc.CommandID
func (SupportedScaleReport) CommandIDString ¶
func (cmd SupportedScaleReport) CommandIDString() string
func (*SupportedScaleReport) MarshalBinary ¶
func (cmd *SupportedScaleReport) MarshalBinary() (payload []byte, err error)
func (*SupportedScaleReport) UnmarshalBinary ¶
func (cmd *SupportedScaleReport) UnmarshalBinary(data []byte) error
type SupportedSensorReport ¶
type SupportedSensorReport struct {
BitMask []byte
}
<no value>
func (SupportedSensorReport) CommandClassID ¶
func (cmd SupportedSensorReport) CommandClassID() cc.CommandClassID
func (SupportedSensorReport) CommandID ¶
func (cmd SupportedSensorReport) CommandID() cc.CommandID
func (SupportedSensorReport) CommandIDString ¶
func (cmd SupportedSensorReport) CommandIDString() string
func (*SupportedSensorReport) MarshalBinary ¶
func (cmd *SupportedSensorReport) MarshalBinary() (payload []byte, err error)
func (*SupportedSensorReport) UnmarshalBinary ¶
func (cmd *SupportedSensorReport) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.