functions

package
v0.0.0-...-a1dc32e Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterFunctions

type ClusterFunctions struct {
	// contains filtered or unexported fields
}

func (*ClusterFunctions) Global

func (*ClusterFunctions) Local

type Functions

type Functions struct {
	// contains filtered or unexported fields
}

func New

func New(coordinator *coordinator.Coordinator, zcl *zcl.Zcl) *Functions

func (*Functions) Cluster

func (f *Functions) Cluster() *ClusterFunctions

func (*Functions) Generic

func (f *Functions) Generic() *GenericFunctions

type GenericFunctions

type GenericFunctions struct {
	// contains filtered or unexported fields
}

func (*GenericFunctions) Bind

func (f *GenericFunctions) Bind(sourceAddress string, sourceIeeeAddress string, sourceEndpoint uint8, clusterId uint16, destinationIeeeAddress string, destinationEndpoint uint8) (*znp.ZdoBindRsp, error)

func (*GenericFunctions) Unbind

func (f *GenericFunctions) Unbind(sourceAddress string, sourceIeeeAddress string, sourceEndpoint uint8, clusterId uint16, destinationIeeeAddress string, destinationEndpoint uint8) (*znp.ZdoUnbindRsp, error)

type GlobalClusterFunctions

type GlobalClusterFunctions struct {
	// contains filtered or unexported fields
}

func (*GlobalClusterFunctions) ReadAttributes

func (f *GlobalClusterFunctions) ReadAttributes(nwkAddress string, clusterId cluster.ClusterId, attributeIds []uint16) (*cluster.ReadAttributesResponse, error)

func (*GlobalClusterFunctions) WriteAttributes

func (f *GlobalClusterFunctions) WriteAttributes(nwkAddress string, clusterId cluster.ClusterId, writeAttributeRecords []*cluster.WriteAttributeRecord) (*cluster.WriteAttributesResponse, error)

type LevelControl

type LevelControl struct {
	*LocalCluster
}

func (*LevelControl) Move

func (f *LevelControl) Move(nwkAddress string, endpoint uint8, moveMode uint8, rate uint8) error

func (*LevelControl) MoveOnOff

func (f *LevelControl) MoveOnOff(nwkAddress string, endpoint uint8, moveMode uint8, rate uint8) error

func (*LevelControl) MoveToLevel

func (f *LevelControl) MoveToLevel(nwkAddress string, endpoint uint8, level uint8, transitionTime uint16) error

func (*LevelControl) MoveToLevelOnOff

func (f *LevelControl) MoveToLevelOnOff(nwkAddress string, endpoint uint8, level uint8, transitionTime uint16) error

func (*LevelControl) Step

func (f *LevelControl) Step(nwkAddress string, endpoint uint8, stepMode uint8, stepSize uint8, transitionTime uint16) error

func (*LevelControl) StepOnOff

func (f *LevelControl) StepOnOff(nwkAddress string, endpoint uint8, stepMode uint8, stepSize uint8, transitionTime uint16) error

func (*LevelControl) Stop

func (f *LevelControl) Stop(nwkAddress string, endpoint uint8) error

func (*LevelControl) StopOnOff

func (f *LevelControl) StopOnOff(nwkAddress string, endpoint uint8) error

type LocalCluster

type LocalCluster struct {
	// contains filtered or unexported fields
}

type LocalClusterFunctions

type LocalClusterFunctions struct {
	// contains filtered or unexported fields
}

func NewLocalClusterFunctions

func NewLocalClusterFunctions(coordinator *coordinator.Coordinator, zcl *zcl.Zcl) *LocalClusterFunctions

func (*LocalClusterFunctions) LevelControl

func (f *LocalClusterFunctions) LevelControl() *LevelControl

func (*LocalClusterFunctions) OnOff

func (f *LocalClusterFunctions) OnOff() *OnOff

type OnOff

type OnOff struct {
	*LocalCluster
}

func (*OnOff) Off

func (f *OnOff) Off(nwkAddress string, endpoint uint8) error

func (*OnOff) OffWithEffect

func (f *OnOff) OffWithEffect(nwkAddress string, endpoint uint8, effectId uint8, effectVariant uint8) error

func (*OnOff) On

func (f *OnOff) On(nwkAddress string, endpoint uint8) error

func (*OnOff) OnWithRecallGlobalScene

func (f *OnOff) OnWithRecallGlobalScene(nwkAddress string, endpoint uint8, effectId uint8, effectVariant uint8) error

func (*OnOff) OnWithTimedOff

func (f *OnOff) OnWithTimedOff(nwkAddress string, endpoint uint8, onOffControl uint8, onTime uint16, offWaitTime uint16) error

func (*OnOff) Toggle

func (f *OnOff) Toggle(nwkAddress string, endpoint uint8) error

Jump to

Keyboard shortcuts

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