model

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 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 Cluster

type Cluster struct {
	Id        uint16
	Name      string
	Supported bool
}

type Device

type Device struct {
	Manufacturer   string
	ManufacturerId uint16
	Model          string
	LogicalType    znp.LogicalType
	MainPowered    bool
	PowerSource    PowerSource
	NetworkAddress string
	IEEEAddress    string
	Endpoints      []*Endpoint
}

func (*Device) SupportedInClusters

func (d *Device) SupportedInClusters() []*Cluster

func (*Device) SupportedOutClusters

func (d *Device) SupportedOutClusters() []*Cluster

type DeviceIncomingMessage

type DeviceIncomingMessage struct {
	Device          *Device
	IncomingMessage *zcl.ZclIncomingMessage
}

type Endpoint

type Endpoint struct {
	Id             uint8
	ProfileId      uint16
	DeviceId       uint16
	DeviceVersion  uint8
	InClusterList  []*Cluster
	OutClusterList []*Cluster
}

type PowerSource

type PowerSource uint8
const (
	Unknown PowerSource = iota
	MainsSinglePhase
	Mains2Phase
	Battery
	DCSource
	EmergencyMainsConstantlyPowered
	EmergencyMainsAndTransfer
)

func (PowerSource) String

func (ps PowerSource) String() string

Jump to

Keyboard shortcuts

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