Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceIdentifier ¶
DeviceIdentifier identifies the source of a message.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener continuously listens for incoming Zigbee messages. It parses messages and updates the state manager accordingly.
type ParsedMessage ¶
type ParsedMessage struct {
Source *DeviceIdentifier
ClusterID uint16
Endpoint uint8
CommandID uint8
TransSeqNum uint8
Attributes []adapter.ReportedAttribute
Error error
}
ParsedMessage represents a parsed ZCL message from a device.
type Parser ¶
type Parser struct {
}
Parser parses ZCL messages and extracts device state updates.
func (*Parser) Parse ¶
func (p *Parser) Parse(msg *znp.IncomingMessage) *ParsedMessage
Parse parses an incoming ZCL message and returns the parsed result.
Click to show internal directories.
Click to hide internal directories.