Documentation ¶
Index ¶
- Constants
- Variables
- func AnyResponse(v interface{}) bool
- type AFRegister
- type AFRegisterReply
- type APPCNFBDBSetChannelRequest
- type APPCNFBDBSetChannelRequestReply
- type APPCNFBDBStartCommissioningRequest
- type APPCNFBDBStartCommissioningRequestReply
- type AfDataConfirm
- type AfDataRequest
- type AfDataRequestOptions
- type AfDataRequestReply
- type AfIncomingMsg
- type Awaiter
- type GenericZStackStatus
- type JoinState
- type NetworkProperties
- type NodeTable
- type RequestResponder
- type ResetReason
- type ResetType
- type Subscriber
- type Successor
- type SysOSALNVRead
- type SysOSALNVReadReply
- type SysOSALNVWrite
- type SysOSALNVWriteReply
- type SysResetInd
- type SysResetReq
- type UtilGetDeviceInfoRequest
- type UtilGetDeviceInfoRequestReply
- type Version
- type ZBStartStatus
- type ZCDNVChanList
- type ZCDNVExtPANID
- type ZCDNVLogicalType
- type ZCDNVPANID
- type ZCDNVPreCfgKey
- type ZCDNVPreCfgKeysEnable
- type ZCDNVSecurityMode
- type ZCDNVStartUpOption
- type ZCDNVTCLKTableStart
- type ZCDNVUseDefaultTCLK
- type ZCDNVZDODirectCB
- type ZDOMgmtPermitJoinRequest
- type ZDOMgmtPermitJoinRequestReply
- type ZDOStartUpFromAppRequest
- type ZDOStartUpFromAppRequestReply
- type ZDOState
- type ZDOStateChangeInd
- type ZStack
- func (z *ZStack) AdapterNode() zigbee.Node
- func (z *ZStack) BindNodeToController(ctx context.Context, nodeAddress zigbee.IEEEAddress, ...) error
- func (z *ZStack) DenyJoin(ctx context.Context) error
- func (z *ZStack) ForceNodeLeave(ctx context.Context, nodeAddress zigbee.IEEEAddress) error
- func (z *ZStack) GetAdapterIEEEAddress(ctx context.Context) (zigbee.IEEEAddress, error)
- func (z *ZStack) GetAdapterNetworkAddress(ctx context.Context) (zigbee.NetworkAddress, error)
- func (z *ZStack) Initialise(pctx context.Context, nc zigbee.NetworkConfiguration) error
- func (z *ZStack) PermitJoin(ctx context.Context, allRouters bool) error
- func (z *ZStack) QueryNodeDescription(ctx context.Context, ieeeAddress zigbee.IEEEAddress) (zigbee.NodeDescription, error)
- func (z *ZStack) QueryNodeEndpointDescription(ctx context.Context, ieeeAddress zigbee.IEEEAddress, endpoint zigbee.Endpoint) (zigbee.EndpointDescription, error)
- func (z *ZStack) QueryNodeEndpoints(ctx context.Context, ieeeAddress zigbee.IEEEAddress) ([]zigbee.Endpoint, error)
- func (z *ZStack) QueryNodeIEEEAddress(ctx context.Context, address zigbee.NetworkAddress) (zigbee.IEEEAddress, error)
- func (z *ZStack) QueryNodeNWKAddress(ctx context.Context, address zigbee.IEEEAddress) (zigbee.NetworkAddress, error)
- func (z *ZStack) ReadEvent(ctx context.Context) (interface{}, error)
- func (z *ZStack) RegisterAdapterEndpoint(ctx context.Context, endpoint zigbee.Endpoint, appProfileId zigbee.ProfileID, ...) error
- func (z *ZStack) RequestNodeLeave(ctx context.Context, nodeAddress zigbee.IEEEAddress) error
- func (z *ZStack) ResolveNodeIEEEAddress(ctx context.Context, address zigbee.NetworkAddress) (zigbee.IEEEAddress, error)
- func (z *ZStack) ResolveNodeNWKAddress(ctx context.Context, address zigbee.IEEEAddress) (zigbee.NetworkAddress, error)
- func (z *ZStack) SendApplicationMessageToNode(ctx context.Context, destinationAddress zigbee.IEEEAddress, ...) error
- func (z *ZStack) Stop()
- func (z *ZStack) UnbindNodeFromController(ctx context.Context, nodeAddress zigbee.IEEEAddress, ...) error
- func (z *ZStack) WithGoLogger(parentLogger *log.Logger)
- func (z *ZStack) WithLogWrapLogger(parentLogger logwrap.Logger)
- type ZStackStatus
- type ZdoActiveEpReq
- type ZdoActiveEpReqReply
- type ZdoActiveEpRsp
- type ZdoBindReq
- type ZdoBindReqReply
- type ZdoBindRsp
- type ZdoEndDeviceAnnceInd
- type ZdoEndDeviceAnnceIndCapabilities
- type ZdoIEEEAddrReq
- type ZdoIEEEAddrReqReply
- type ZdoIEEEAddrRsp
- type ZdoLeaveInd
- type ZdoMGMTLQINeighbour
- type ZdoMGMTLQINeighbourStatus
- type ZdoMGMTLQIReq
- type ZdoMGMTLQIReqReply
- type ZdoMGMTLQIRsp
- type ZdoMgmtLeaveReq
- type ZdoMgmtLeaveReqReply
- type ZdoMgmtLeaveRsp
- type ZdoNWKAddrReq
- type ZdoNWKAddrReqReply
- type ZdoNWKAddrRsp
- type ZdoNodeDescReq
- type ZdoNodeDescReqReply
- type ZdoNodeDescRsp
- type ZdoNodeDescRspCapabilities
- type ZdoNodeDescRspServerMask
- type ZdoSimpleDescReq
- type ZdoSimpleDescReqReply
- type ZdoSimpleDescRsp
- type ZdoTcDevInd
- type ZdoUnbindReq
- type ZdoUnbindReqReply
- type ZdoUnbindRsp
Constants ¶
View Source
const ( JoiningOff uint8 = 0x00 JoiningOn uint8 = 0xff )
View Source
const AFRegisterID uint8 = 0x00
View Source
const AFRegisterReplyID uint8 = 0x00
View Source
const APPCNFBDBSetChannelRequestID uint8 = 0x08
View Source
const APPCNFBDBSetChannelRequestReplyID uint8 = 0x08
View Source
const APPCNFBDBStartCommissioningRequestID uint8 = 0x05
View Source
const APPCNFBDBStartCommissioningRequestReplyID uint8 = 0x05
View Source
const AfDataConfirmID uint8 = 0x80
View Source
const AfDataRequestID uint8 = 0x01
View Source
const AfDataRequestReplyID uint8 = 0x01
View Source
const AfIncomingMsgID uint8 = 0x81
View Source
const DefaultInflightEvents = 50
View Source
const DefaultInflightTransactions = 20
View Source
const DefaultRadius uint8 = 0x20
View Source
const DefaultResolveIEEETimeout = 500 * time.Millisecond
View Source
const DefaultZStackRetries = 3
View Source
const DefaultZStackTimeout = 5 * time.Second
View Source
const SysOSALNVReadID uint8 = 0x08
View Source
const SysOSALNVReadReplyID uint8 = 0x08
View Source
const SysOSALNVWriteID uint8 = 0x09
View Source
const SysOSALNVWriteReplyID uint8 = 0x09
View Source
const SysResetIndID uint8 = 0x80
View Source
const SysResetReqID uint8 = 0x00
View Source
const UtilGetDeviceInfoRequestID uint8 = 0x00
View Source
const UtilGetDeviceInfoRequestReplyID uint8 = 0x00
View Source
const ZCDNVChanListID uint16 = 0x0084
View Source
const ZCDNVExtPANIDID uint16 = 0x002d
View Source
const ZCDNVLogicalTypeID uint16 = 0x0087
View Source
const ZCDNVPANIDID uint16 = 0x0083
View Source
const ZCDNVPreCfgKeyID uint16 = 0x0062
View Source
const ZCDNVPreCfgKeysEnableID uint16 = 0x0063
View Source
const ZCDNVSecurityModeID uint16 = 0x0064
View Source
const ZCDNVStartUpOptionID uint16 = 0x0003
View Source
const ZCDNVTCLKTableStartID uint16 = 0x0101
View Source
const ZCDNVUseDefaultTCLKID uint16 = 0x006d
View Source
const ZCDNVZDODirectCBID uint16 = 0x008f
View Source
const ZDOMgmtPermitJoinRequestID = 0x36
View Source
const ZDOMgmtPermitJoinRequestReplyID uint8 = 0x36
View Source
const ZDOStartUpFromAppRequestId uint8 = 0x40
View Source
const ZDOStartUpFromAppRequestReplyID uint8 = 0x40
View Source
const ZDOStateChangeIndID uint8 = 0xc0
View Source
const ZdoActiveEpReqID uint8 = 0x05
View Source
const ZdoActiveEpReqReplyID uint8 = 0x05
View Source
const ZdoActiveEpRspID uint8 = 0x85
View Source
const ZdoBindReqID uint8 = 0x21
View Source
const ZdoBindReqReplyID uint8 = 0x21
View Source
const ZdoBindRspID uint8 = 0xa1
View Source
const ZdoEndDeviceAnnceIndID uint8 = 0xc1
View Source
const ZdoIEEEAddrReqID uint8 = 0x01
View Source
const ZdoIEEEAddrReqReplyID uint8 = 0x01
View Source
const ZdoIEEEAddrRspID uint8 = 0x81
View Source
const ZdoLeaveIndID uint8 = 0xc9
View Source
const ZdoMGMTLQIReqID uint8 = 0x31
View Source
const ZdoMGMTLQIReqReplyID uint8 = 0x31
View Source
const ZdoMGMTLQIRspID uint8 = 0xb1
View Source
const ZdoMgmtLeaveReqID uint8 = 0x34
View Source
const ZdoMgmtLeaveReqReplyID uint8 = 0x34
View Source
const ZdoMgmtLeaveRspID uint8 = 0xb4
View Source
const ZdoNWKAddrReqID uint8 = 0x00
View Source
const ZdoNWKAddrReqReplyID uint8 = 0x00
View Source
const ZdoNWKAddrRspID uint8 = 0x80
View Source
const ZdoNodeDescReqID uint8 = 0x02
View Source
const ZdoNodeDescReqReplyID uint8 = 0x02
View Source
const ZdoNodeDescRspID uint8 = 0x82
View Source
const ZdoSimpleDescReqID uint8 = 0x04
View Source
const ZdoSimpleDescReqReplyID uint8 = 0x04
View Source
const ZdoSimpleDescRspID uint8 = 0x84
View Source
const ZdoTcDevIndID uint8 = 0xca
View Source
const ZdoUnbindReqID uint8 = 0x22
View Source
const ZdoUnbindReqReplyID uint8 = 0x22
View Source
const ZdoUnbindRspID uint8 = 0xa2
Variables ¶
View Source
var ErrorZFailure = errors.New("ZStack has returned a failure")
View Source
var NVRAMUnrecognised = errors.New("nvram structure unrecognised")
View Source
var NVRAMUnsuccessful = errors.New("nvram operation unsuccessful")
View Source
var NodeResponseWasNotSuccess = errors.New("response from node was not success")
View Source
var ReplyDoesNotReportSuccess = errors.New("reply struct does not support Successor interface")
Functions ¶
func AnyResponse ¶
func AnyResponse(v interface{}) bool
Types ¶
type AFRegister ¶
type AFRegisterReply ¶
type AFRegisterReply GenericZStackStatus
type APPCNFBDBSetChannelRequestReply ¶
type APPCNFBDBSetChannelRequestReply GenericZStackStatus
type APPCNFBDBStartCommissioningRequest ¶
type APPCNFBDBStartCommissioningRequest struct {
Mode uint8
}
type APPCNFBDBStartCommissioningRequestReply ¶
type APPCNFBDBStartCommissioningRequestReply GenericZStackStatus
type AfDataConfirm ¶
type AfDataConfirm struct { Status ZStackStatus Endpoint zigbee.Endpoint TransactionID uint8 }
func (AfDataConfirm) WasSuccessful ¶
func (s AfDataConfirm) WasSuccessful() bool
type AfDataRequest ¶
type AfDataRequestOptions ¶
type AfDataRequestReply ¶
type AfDataRequestReply GenericZStackStatus
func (AfDataRequestReply) WasSuccessful ¶
func (s AfDataRequestReply) WasSuccessful() bool
type AfIncomingMsg ¶
type GenericZStackStatus ¶
type GenericZStackStatus struct {
Status ZStackStatus
}
func (GenericZStackStatus) WasSuccessful ¶
func (s GenericZStackStatus) WasSuccessful() bool
type NetworkProperties ¶
type NetworkProperties struct { NetworkAddress zigbee.NetworkAddress IEEEAddress zigbee.IEEEAddress PANID zigbee.PANID ExtendedPANID zigbee.ExtendedPANID NetworkKey zigbee.NetworkKey Channel uint8 JoinState JoinState }
type NodeTable ¶
type NodeTable struct {
// contains filtered or unexported fields
}
func NewNodeTable ¶
func NewNodeTable() *NodeTable
type RequestResponder ¶
type ResetReason ¶
type ResetReason uint8
const ( PowerUp ResetReason = 0 External ResetReason = 1 Watchdog ResetReason = 2 )
type Subscriber ¶
type Subscriber interface {
Subscribe(message interface{}, callback func(v interface{})) (error, func())
}
type SysOSALNVRead ¶
type SysOSALNVReadReply ¶
type SysOSALNVReadReply struct { Status ZStackStatus Value []byte `bcsliceprefix:"8"` }
type SysOSALNVWrite ¶
type SysOSALNVWriteReply ¶
type SysOSALNVWriteReply GenericZStackStatus
type SysResetInd ¶
type SysResetInd struct { Reason ResetReason Version Version }
type SysResetReq ¶
type SysResetReq struct {
ResetType ResetType
}
type UtilGetDeviceInfoRequest ¶
type UtilGetDeviceInfoRequest struct{}
type UtilGetDeviceInfoRequestReply ¶
type UtilGetDeviceInfoRequestReply struct { Status uint8 IEEEAddress zigbee.IEEEAddress NetworkAddress zigbee.NetworkAddress }
type Version ¶
type ZBStartStatus ¶
type ZBStartStatus uint8
const ( ZBSuccess ZBStartStatus = 0x00 ZBInit ZBStartStatus = 0x22 )
type ZCDNVChanList ¶
type ZCDNVChanList struct {
Channels [4]byte
}
type ZCDNVExtPANID ¶
type ZCDNVExtPANID struct {
ExtendedPANID zigbee.ExtendedPANID
}
type ZCDNVLogicalType ¶
type ZCDNVLogicalType struct {
LogicalType zigbee.LogicalType
}
type ZCDNVPANID ¶
type ZCDNVPreCfgKey ¶
type ZCDNVPreCfgKey struct {
NetworkKey zigbee.NetworkKey
}
type ZCDNVPreCfgKeysEnable ¶
type ZCDNVPreCfgKeysEnable struct {
Enabled uint8
}
type ZCDNVSecurityMode ¶
type ZCDNVSecurityMode struct {
Enabled uint8
}
type ZCDNVStartUpOption ¶
type ZCDNVStartUpOption struct {
StartOption uint8
}
type ZCDNVTCLKTableStart ¶
type ZCDNVTCLKTableStart struct { Address zigbee.IEEEAddress NetworkKey zigbee.NetworkKey TXFrameCounter uint32 RXFrameCounter uint32 }
type ZCDNVUseDefaultTCLK ¶
type ZCDNVUseDefaultTCLK struct {
Enabled uint8
}
type ZCDNVZDODirectCB ¶
type ZCDNVZDODirectCB struct {
Enabled uint8
}
type ZDOMgmtPermitJoinRequest ¶
type ZDOMgmtPermitJoinRequest struct { Destination zigbee.NetworkAddress Duration uint8 TCSignificance uint8 }
type ZDOMgmtPermitJoinRequestReply ¶
type ZDOMgmtPermitJoinRequestReply GenericZStackStatus
type ZDOStartUpFromAppRequest ¶
type ZDOStartUpFromAppRequest struct {
StartDelay uint16
}
type ZDOStartUpFromAppRequestReply ¶
type ZDOStartUpFromAppRequestReply struct {
Status uint8
}
type ZDOStateChangeInd ¶
type ZDOStateChangeInd struct {
State ZDOState
}
type ZStack ¶
type ZStack struct { NetworkProperties NetworkProperties // contains filtered or unexported fields }
func (*ZStack) AdapterNode ¶
func (*ZStack) BindNodeToController ¶
func (*ZStack) ForceNodeLeave ¶
func (*ZStack) GetAdapterIEEEAddress ¶
func (*ZStack) GetAdapterNetworkAddress ¶
func (*ZStack) Initialise ¶
func (*ZStack) QueryNodeDescription ¶
func (z *ZStack) QueryNodeDescription(ctx context.Context, ieeeAddress zigbee.IEEEAddress) (zigbee.NodeDescription, error)
func (*ZStack) QueryNodeEndpointDescription ¶
func (z *ZStack) QueryNodeEndpointDescription(ctx context.Context, ieeeAddress zigbee.IEEEAddress, endpoint zigbee.Endpoint) (zigbee.EndpointDescription, error)
func (*ZStack) QueryNodeEndpoints ¶
func (*ZStack) QueryNodeIEEEAddress ¶
func (z *ZStack) QueryNodeIEEEAddress(ctx context.Context, address zigbee.NetworkAddress) (zigbee.IEEEAddress, error)
func (*ZStack) QueryNodeNWKAddress ¶
func (z *ZStack) QueryNodeNWKAddress(ctx context.Context, address zigbee.IEEEAddress) (zigbee.NetworkAddress, error)
func (*ZStack) RegisterAdapterEndpoint ¶
func (*ZStack) RequestNodeLeave ¶
func (*ZStack) ResolveNodeIEEEAddress ¶
func (z *ZStack) ResolveNodeIEEEAddress(ctx context.Context, address zigbee.NetworkAddress) (zigbee.IEEEAddress, error)
func (*ZStack) ResolveNodeNWKAddress ¶
func (z *ZStack) ResolveNodeNWKAddress(ctx context.Context, address zigbee.IEEEAddress) (zigbee.NetworkAddress, error)
func (*ZStack) SendApplicationMessageToNode ¶
func (z *ZStack) SendApplicationMessageToNode(ctx context.Context, destinationAddress zigbee.IEEEAddress, message zigbee.ApplicationMessage, requireAck bool) error
func (*ZStack) UnbindNodeFromController ¶
func (*ZStack) WithGoLogger ¶
func (*ZStack) WithLogWrapLogger ¶
type ZStackStatus ¶
type ZStackStatus uint8
const ( ZSuccess ZStackStatus = 0x00 ZFailure ZStackStatus = 0x01 )
type ZdoActiveEpReq ¶
type ZdoActiveEpReq struct { DestinationAddress zigbee.NetworkAddress OfInterestAddress zigbee.NetworkAddress }
type ZdoActiveEpReqReply ¶
type ZdoActiveEpReqReply GenericZStackStatus
func (ZdoActiveEpReqReply) WasSuccessful ¶
func (r ZdoActiveEpReqReply) WasSuccessful() bool
type ZdoActiveEpRsp ¶
type ZdoActiveEpRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus OfInterestAddress zigbee.NetworkAddress ActiveEndpoints []zigbee.Endpoint `bcsliceprefix:"8"` }
func (ZdoActiveEpRsp) WasSuccessful ¶
func (r ZdoActiveEpRsp) WasSuccessful() bool
type ZdoBindReq ¶
type ZdoBindReqReply ¶
type ZdoBindReqReply GenericZStackStatus
func (ZdoBindReqReply) WasSuccessful ¶
func (r ZdoBindReqReply) WasSuccessful() bool
type ZdoBindRsp ¶
type ZdoBindRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus }
func (ZdoBindRsp) WasSuccessful ¶
func (r ZdoBindRsp) WasSuccessful() bool
type ZdoEndDeviceAnnceInd ¶
type ZdoEndDeviceAnnceInd struct { SourceAddress zigbee.NetworkAddress NetworkAddress zigbee.NetworkAddress IEEEAddress zigbee.IEEEAddress Capabilities ZdoEndDeviceAnnceIndCapabilities }
type ZdoEndDeviceAnnceIndCapabilities ¶
type ZdoEndDeviceAnnceIndCapabilities struct { AddressAllocated bool `bcfieldwidth:"1"` SecurityCapability bool `bcfieldwidth:"1"` Reserved uint8 `bcfieldwidth:"2"` ReceiveOnIdle bool `bcfieldwidth:"1"` PowerSource bool `bcfieldwidth:"1"` Router bool `bcfieldwidth:"1"` AltPANController bool `bcfieldwidth:"1"` }
type ZdoIEEEAddrReq ¶
type ZdoIEEEAddrReq struct { NetworkAddress zigbee.NetworkAddress ReqType uint8 StartIndex uint8 }
type ZdoIEEEAddrReqReply ¶
type ZdoIEEEAddrReqReply GenericZStackStatus
func (ZdoIEEEAddrReqReply) WasSuccessful ¶
func (s ZdoIEEEAddrReqReply) WasSuccessful() bool
type ZdoIEEEAddrRsp ¶
type ZdoIEEEAddrRsp struct { Status ZStackStatus IEEEAddress zigbee.IEEEAddress NetworkAddress zigbee.NetworkAddress StartIndex uint8 AssociatedDevices []zigbee.NetworkAddress `bcsliceprefix:"8"` }
func (ZdoIEEEAddrRsp) WasSuccessful ¶
func (s ZdoIEEEAddrRsp) WasSuccessful() bool
type ZdoLeaveInd ¶
type ZdoLeaveInd struct { SourceAddress zigbee.NetworkAddress IEEEAddress zigbee.IEEEAddress Request bool Remove bool Rejoin bool }
type ZdoMGMTLQINeighbour ¶
type ZdoMGMTLQINeighbour struct { ExtendedPANID zigbee.ExtendedPANID IEEEAddress zigbee.IEEEAddress NetworkAddress zigbee.NetworkAddress Status ZdoMGMTLQINeighbourStatus PermitJoining bool Depth uint8 LQI uint8 }
type ZdoMGMTLQINeighbourStatus ¶
type ZdoMGMTLQINeighbourStatus struct { Reserved uint8 `bcfieldwidth:"1"` Relationship zigbee.Relationship `bcfieldwidth:"3"` RxOnWhenIdle uint8 `bcfieldwidth:"2"` DeviceType zigbee.LogicalType `bcfieldwidth:"2"` }
type ZdoMGMTLQIReq ¶
type ZdoMGMTLQIReq struct { DestinationAddress zigbee.NetworkAddress StartIndex uint8 }
type ZdoMGMTLQIReqReply ¶
type ZdoMGMTLQIReqReply GenericZStackStatus
type ZdoMGMTLQIRsp ¶
type ZdoMGMTLQIRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus NeighbourTableEntries uint8 StartIndex uint8 Neighbors []ZdoMGMTLQINeighbour `bcsliceprefix:"8"` }
type ZdoMgmtLeaveReq ¶
type ZdoMgmtLeaveReq struct { NetworkAddress zigbee.NetworkAddress IEEEAddress zigbee.IEEEAddress RemoveChildren bool }
type ZdoMgmtLeaveReqReply ¶
type ZdoMgmtLeaveReqReply GenericZStackStatus
func (ZdoMgmtLeaveReqReply) WasSuccessful ¶
func (r ZdoMgmtLeaveReqReply) WasSuccessful() bool
type ZdoMgmtLeaveRsp ¶
type ZdoMgmtLeaveRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus }
func (ZdoMgmtLeaveRsp) WasSuccessful ¶
func (r ZdoMgmtLeaveRsp) WasSuccessful() bool
type ZdoNWKAddrReq ¶
type ZdoNWKAddrReq struct { IEEEAddress zigbee.IEEEAddress ReqType uint8 StartIndex uint8 }
type ZdoNWKAddrReqReply ¶
type ZdoNWKAddrReqReply GenericZStackStatus
func (ZdoNWKAddrReqReply) WasSuccessful ¶
func (s ZdoNWKAddrReqReply) WasSuccessful() bool
type ZdoNWKAddrRsp ¶
type ZdoNWKAddrRsp struct { Status ZStackStatus IEEEAddress zigbee.IEEEAddress NetworkAddress zigbee.NetworkAddress StartIndex uint8 AssociatedDevices []zigbee.NetworkAddress `bcsliceprefix:"8"` }
func (ZdoNWKAddrRsp) WasSuccessful ¶
func (s ZdoNWKAddrRsp) WasSuccessful() bool
type ZdoNodeDescReq ¶
type ZdoNodeDescReq struct { DestinationAddress zigbee.NetworkAddress OfInterestAddress zigbee.NetworkAddress }
type ZdoNodeDescReqReply ¶
type ZdoNodeDescReqReply GenericZStackStatus
func (ZdoNodeDescReqReply) WasSuccessful ¶
func (r ZdoNodeDescReqReply) WasSuccessful() bool
type ZdoNodeDescRsp ¶
type ZdoNodeDescRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus OfInterestAddress zigbee.NetworkAddress Capabilities ZdoNodeDescRspCapabilities NodeFrequencyBand uint8 `bcfieldwidth:"3"` APSFlags uint8 `bcfieldwidth:"5"` MacCapabilitiesFlags uint8 ManufacturerCode uint16 MaxBufferSize uint8 MaxInTransferSize uint16 ServerMask ZdoNodeDescRspServerMask MaxOutTransferSize uint16 DescriptorCapabilities uint8 }
func (ZdoNodeDescRsp) WasSuccessful ¶
func (r ZdoNodeDescRsp) WasSuccessful() bool
type ZdoNodeDescRspCapabilities ¶
type ZdoNodeDescRspCapabilities struct { Reserved uint8 `bcfieldwidth:"3"` UserDescriptorAvailable bool `bcfieldwidth:"1"` ComplexDescriptorAvailable bool `bcfieldwidth:"1"` LogicalType zigbee.LogicalType `bcfieldwidth:"3"` }
type ZdoNodeDescRspServerMask ¶
type ZdoNodeDescRspServerMask struct { Reserved0 uint8 `bcfieldwidth:"8"` Reserved1 uint8 `bcfieldwidth:"2"` BackupDiscoveryCache bool `bcfieldwidth:"1"` PrimaryDiscoveryCache bool `bcfieldwidth:"1"` BackupBindingTableCache bool `bcfieldwidth:"1"` PrimaryBindingTableCache bool `bcfieldwidth:"1"` BackupTrustCenter bool `bcfieldwidth:"1"` PrimaryTrustCenter bool `bcfieldwidth:"1"` }
type ZdoSimpleDescReq ¶
type ZdoSimpleDescReq struct { DestinationAddress zigbee.NetworkAddress OfInterestAddress zigbee.NetworkAddress Endpoint zigbee.Endpoint }
type ZdoSimpleDescReqReply ¶
type ZdoSimpleDescReqReply GenericZStackStatus
func (ZdoSimpleDescReqReply) WasSuccessful ¶
func (r ZdoSimpleDescReqReply) WasSuccessful() bool
type ZdoSimpleDescRsp ¶
type ZdoSimpleDescRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus OfInterestAddress zigbee.NetworkAddress Length uint8 Endpoint zigbee.Endpoint ProfileID zigbee.ProfileID DeviceID uint16 DeviceVersion uint8 InClusterList []zigbee.ClusterID `bcsliceprefix:"8"` OutClusterList []zigbee.ClusterID `bcsliceprefix:"8"` }
func (ZdoSimpleDescRsp) WasSuccessful ¶
func (r ZdoSimpleDescRsp) WasSuccessful() bool
type ZdoTcDevInd ¶
type ZdoTcDevInd struct { NetworkAddress zigbee.NetworkAddress IEEEAddress zigbee.IEEEAddress ParentAddress zigbee.NetworkAddress }
type ZdoUnbindReq ¶
type ZdoUnbindReqReply ¶
type ZdoUnbindReqReply GenericZStackStatus
func (ZdoUnbindReqReply) WasSuccessful ¶
func (r ZdoUnbindReqReply) WasSuccessful() bool
type ZdoUnbindRsp ¶
type ZdoUnbindRsp struct { SourceAddress zigbee.NetworkAddress Status ZStackStatus }
func (ZdoUnbindRsp) WasSuccessful ¶
func (r ZdoUnbindRsp) WasSuccessful() bool
Source Files ¶
- adapter_endpoints.go
- adapter_info.go
- adapter_initialise.go
- adapter_reset.go
- device_state.go
- events.go
- joining.go
- messages.go
- network_manager.go
- node_address.go
- node_bind.go
- node_description.go
- node_endpoint_description.go
- node_endpoints.go
- node_receive_message.go
- node_remove.go
- node_request.go
- node_send_message.go
- node_table.go
- node_unbind.go
- nvram.go
- zstack.go
Click to show internal directories.
Click to hide internal directories.