Documentation ¶
Index ¶
- func SetLogger(logger *logger.Logger)
- type ZStackGateway
- func (s *ZStackGateway) OnBoundCluster(addr uint64, endpoint uint32, cluster uint32) chan *gateway.GwZclFrameReceiveInd
- func (s *ZStackGateway) OnZoneState(addr uint64, endpoint uint32) chan *gateway.DevZoneStatusChangeInd
- func (s *ZStackGateway) SendAsyncCommand(request zStackGatewayCommand, response zStackGatewayCommand, ...) error
- func (s *ZStackGateway) SendCommand(request zStackGatewayCommand, response zStackGatewayCommand) error
- type ZStackNwkMgr
- func (d *ZStackNwkMgr) FetchDeviceList() error
- func (s *ZStackNwkMgr) Reset(hard bool) error
- func (s *ZStackNwkMgr) SendAsyncCommand(request zStackNwkMgrCommand, response zStackNwkMgrCommand, ...) error
- func (s *ZStackNwkMgr) SendCommand(request zStackNwkMgrCommand, response zStackNwkMgrCommand) error
- type ZStackOta
- type ZStackServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZStackGateway ¶
type ZStackGateway struct { *ZStackServer // contains filtered or unexported fields }
func ConnectToGatewayServer ¶
func ConnectToGatewayServer(hostname string, port int) (*ZStackGateway, error)
func (*ZStackGateway) OnBoundCluster ¶
func (s *ZStackGateway) OnBoundCluster(addr uint64, endpoint uint32, cluster uint32) chan *gateway.GwZclFrameReceiveInd
func (*ZStackGateway) OnZoneState ¶
func (s *ZStackGateway) OnZoneState(addr uint64, endpoint uint32) chan *gateway.DevZoneStatusChangeInd
func (*ZStackGateway) SendAsyncCommand ¶
func (s *ZStackGateway) SendAsyncCommand(request zStackGatewayCommand, response zStackGatewayCommand, timeout time.Duration) error
SendAsyncCommand sends a command that requires an async response from the device, using ZCL SequenceNumber
func (*ZStackGateway) SendCommand ¶
func (s *ZStackGateway) SendCommand(request zStackGatewayCommand, response zStackGatewayCommand) error
SendCommand sends a protobuf Message to the Z-Stack server, and waits for the response
type ZStackNwkMgr ¶
type ZStackNwkMgr struct { *ZStackServer OnDeviceFound func(deviceInfo *nwkmgr.NwkDeviceInfoT) OnNetworkReady func() // contains filtered or unexported fields }
func ConnectToNwkMgrServer ¶
func ConnectToNwkMgrServer(hostname string, port int) (*ZStackNwkMgr, error)
func (*ZStackNwkMgr) FetchDeviceList ¶
func (d *ZStackNwkMgr) FetchDeviceList() error
func (*ZStackNwkMgr) Reset ¶
func (s *ZStackNwkMgr) Reset(hard bool) error
func (*ZStackNwkMgr) SendAsyncCommand ¶
func (s *ZStackNwkMgr) SendAsyncCommand(request zStackNwkMgrCommand, response zStackNwkMgrCommand, timeout time.Duration) error
SendAsyncCommand sends a command that requires an async response from the device, using ZCL SequenceNumber
func (*ZStackNwkMgr) SendCommand ¶
func (s *ZStackNwkMgr) SendCommand(request zStackNwkMgrCommand, response zStackNwkMgrCommand) error
SendCommand sends a protobuf Message to the Z-Stack server, and waits for the response
type ZStackOta ¶
type ZStackOta struct {
*ZStackServer
}
func (*ZStackOta) SendCommand ¶
SendCommand sends a protobuf Message to the Z-Stack OTA server, and waits for the response
type ZStackServer ¶
type ZStackServer struct {
// contains filtered or unexported fields
}
ZStackServer holds the connection to one of the Z-Stack servers (nwkmgr, gateway and otasrvr)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package gateway is a generated protocol buffer package.
|
Package gateway is a generated protocol buffer package. |
Package nwkmgr is a generated protocol buffer package.
|
Package nwkmgr is a generated protocol buffer package. |
Package otasrvr is a generated protocol buffer package.
|
Package otasrvr is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.