zigbee

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Mode     AddressMode
	Short    uint16
	Extended MACAddress
}

type AddressMode

type AddressMode byte
const (
	AddressModeNone     AddressMode = 0x00
	AddressModeGroup    AddressMode = 0x01
	AddressModeNWK      AddressMode = 0x02
	AddressModeIEEE     AddressMode = 0x03
	AddressModeCombined AddressMode = 0x04
)

func (AddressMode) String

func (m AddressMode) String() string

type Controller

type Controller interface {
	io.Closer

	Start() (chan IncomingMessage, error)
	Send(message OutgoingMessage) error
	PermitJoining(enabled bool) error
}

type ControllerSettings

type ControllerSettings struct {
	Port        string
	LogCommands bool
	LogErrors   bool
}

type IncomingMessage

type IncomingMessage struct {
	Source              Address
	SourceEndpoint      uint8
	DestinationEndpoint uint8
	ClusterID           uint16
	LinkQuality         uint8
	Data                []byte
}

type MACAddress

type MACAddress uint64

func (MACAddress) String

func (a MACAddress) String() string

type OutgoingMessage

type OutgoingMessage struct {
	Destination         Address
	DestinationEndpoint uint8
	SourceEndpoint      uint8
	ClusterID           uint16
	Radius              uint8
	Data                []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL