Preparing search index...
The search index is not available
zigbee-herdsman
zigbee-herdsman
adapter/ezsp/driver/ezsp
Ezsp
Class Ezsp
Hierarchy
EventEmitter
Ezsp
Index
Constructors
constructor
Properties
cmd
Seq
ezspV
Methods
close
connect
exec
Command
form
Network
get
Configuration
Value
get
Current
Security
State
get
Multicast
Table
Entry
get
Value
is
Initialized
leave
Network
makeZDOframe
network
Init
send
Broadcast
send
Multicast
send
Unicast
set
Configuration
Value
set
Initial
Security
State
set
Multicast
Table
Entry
set
Policy
set
Source
Routing
set
Value
update
Config
update
Policies
version
wait
For
Constructors
constructor
new
Ezsp
()
:
Ezsp
Returns
Ezsp
Properties
cmd
Seq
cmdSeq
:
number
= 0
ezspV
ezspV
:
number
= 4
Methods
close
close
(
emitClose
:
boolean
)
:
Promise
<
void
>
Parameters
emitClose
:
boolean
Returns
Promise
<
void
>
connect
connect
(
options
:
SerialPortOptions
)
:
Promise
<
void
>
Parameters
options
:
SerialPortOptions
Returns
Promise
<
void
>
exec
Command
execCommand
(
name
:
string
,
params
?:
ParamsDesc
)
:
Promise
<
EZSPFrameData
>
Parameters
name
:
string
Optional
params
:
ParamsDesc
Returns
Promise
<
EZSPFrameData
>
form
Network
formNetwork
(
params
:
EmberNetworkParameters
)
:
Promise
<
number
>
Parameters
params
:
EmberNetworkParameters
Returns
Promise
<
number
>
get
Configuration
Value
getConfigurationValue
(
configId
:
number
)
:
Promise
<
number
>
Parameters
configId
:
number
Returns
Promise
<
number
>
get
Current
Security
State
getCurrentSecurityState
()
:
Promise
<
EZSPFrameData
>
Returns
Promise
<
EZSPFrameData
>
get
Multicast
Table
Entry
getMulticastTableEntry
(
index
:
number
)
:
Promise
<
EmberMulticastTableEntry
>
Parameters
index
:
number
Returns
Promise
<
EmberMulticastTableEntry
>
get
Value
getValue
(
valueId
:
EzspValueId
)
:
Promise
<
Buffer
>
Parameters
valueId
:
EzspValueId
Returns
Promise
<
Buffer
>
is
Initialized
isInitialized
()
:
boolean
Returns
boolean
leave
Network
leaveNetwork
()
:
Promise
<
number
>
Returns
Promise
<
number
>
makeZDOframe
makeZDOframe
(
name
:
string
|
number
,
params
:
ParamsDesc
)
:
Buffer
Parameters
name
:
string
|
number
params
:
ParamsDesc
Returns
Buffer
network
Init
networkInit
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
send
Broadcast
sendBroadcast
(
destination
:
number
,
apsFrame
:
EmberApsFrame
,
seq
:
number
,
data
:
Buffer
,
)
:
Promise
<
EZSPFrameData
>
Parameters
destination
:
number
apsFrame
:
EmberApsFrame
seq
:
number
data
:
Buffer
Returns
Promise
<
EZSPFrameData
>
send
Multicast
sendMulticast
(
apsFrame
:
EmberApsFrame
,
seq
:
number
,
data
:
Buffer
,
)
:
Promise
<
EZSPFrameData
>
Parameters
apsFrame
:
EmberApsFrame
seq
:
number
data
:
Buffer
Returns
Promise
<
EZSPFrameData
>
send
Unicast
sendUnicast
(
direct
:
EmberOutgoingMessageType
,
nwk
:
number
,
apsFrame
:
EmberApsFrame
,
seq
:
number
,
data
:
Buffer
,
)
:
Promise
<
EZSPFrameData
>
Parameters
direct
:
EmberOutgoingMessageType
nwk
:
number
apsFrame
:
EmberApsFrame
seq
:
number
data
:
Buffer
Returns
Promise
<
EZSPFrameData
>
set
Configuration
Value
setConfigurationValue
(
configId
:
number
,
value
:
number
)
:
Promise
<
void
>
Parameters
configId
:
number
value
:
number
Returns
Promise
<
void
>
set
Initial
Security
State
setInitialSecurityState
(
entry
:
EmberInitialSecurityState
)
:
Promise
<
EmberStatus
>
Parameters
entry
:
EmberInitialSecurityState
Returns
Promise
<
EmberStatus
>
set
Multicast
Table
Entry
setMulticastTableEntry
(
index
:
number
,
entry
:
EmberMulticastTableEntry
,
)
:
Promise
<
EmberStatus
>
Parameters
index
:
number
entry
:
EmberMulticastTableEntry
Returns
Promise
<
EmberStatus
>
set
Policy
setPolicy
(
policyId
:
EzspPolicyId
,
value
:
number
)
:
Promise
<
EZSPFrameData
>
Parameters
policyId
:
EzspPolicyId
value
:
number
Returns
Promise
<
EZSPFrameData
>
set
Source
Routing
setSourceRouting
()
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Value
setValue
(
valueId
:
EzspValueId
,
value
:
number
)
:
Promise
<
EZSPFrameData
>
Parameters
valueId
:
EzspValueId
value
:
number
Returns
Promise
<
EZSPFrameData
>
update
Config
updateConfig
()
:
Promise
<
void
>
Returns
Promise
<
void
>
update
Policies
updatePolicies
()
:
Promise
<
void
>
Returns
Promise
<
void
>
version
version
()
:
Promise
<
number
>
Returns
Promise
<
number
>
wait
For
waitFor
(
frameId
:
string
|
number
,
sequence
:
null
|
number
,
timeout
?:
number
,
)
:
{
ID
:
number
;
start
:
()
=>
{
ID
:
number
;
promise
:
Promise
<
EZSPFrame
>
}
}
Parameters
frameId
:
string
|
number
sequence
:
null
|
number
timeout
:
number
= 10000
Returns
{
ID
:
number
;
start
:
()
=>
{
ID
:
number
;
promise
:
Promise
<
EZSPFrame
>
}
}
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cmd
Seq
ezspV
Methods
close
connect
exec
Command
form
Network
get
Configuration
Value
get
Current
Security
State
get
Multicast
Table
Entry
get
Value
is
Initialized
leave
Network
makeZDOframe
network
Init
send
Broadcast
send
Multicast
send
Unicast
set
Configuration
Value
set
Initial
Security
State
set
Multicast
Table
Entry
set
Policy
set
Source
Routing
set
Value
update
Config
update
Policies
version
wait
For
zigbee-herdsman
Loading...