Preparing search index...
The search index is not available
zigbee-herdsman
zigbee-herdsman
adapter/z-stack/znp/znp
Znp
Class Znp
Hierarchy
EventEmitter
Znp
Index
Constructors
constructor
Methods
close
is
Initialized
open
request
request
With
Reply
request
Zdo
wait
For
Constructors
constructor
new
Znp
(
path
:
string
,
baudRate
:
number
,
rtscts
:
boolean
)
:
Znp
Parameters
path
:
string
baudRate
:
number
rtscts
:
boolean
Returns
Znp
Methods
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
is
Initialized
isInitialized
()
:
boolean
Returns
boolean
open
open
()
:
Promise
<
void
>
Returns
Promise
<
void
>
request
request
(
subsystem
:
Subsystem
,
command
:
string
,
payload
:
ZpiObjectPayload
,
waiterID
?:
number
,
timeout
?:
number
,
expectedStatuses
?:
ZnpCommandStatus
[]
,
)
:
Promise
<
void
|
ZpiObject
<
"Response"
>
>
Parameters
subsystem
:
Subsystem
command
:
string
payload
:
ZpiObjectPayload
Optional
waiterID
:
number
Optional
timeout
:
number
expectedStatuses
:
ZnpCommandStatus
[]
= ...
Returns
Promise
<
void
|
ZpiObject
<
"Response"
>
>
request
With
Reply
requestWithReply
(
subsystem
:
Subsystem
,
command
:
string
,
payload
:
ZpiObjectPayload
,
waiterID
?:
number
,
timeout
?:
number
,
expectedStatuses
?:
ZnpCommandStatus
[]
,
)
:
Promise
<
ZpiObject
<
"Response"
>
>
Parameters
subsystem
:
Subsystem
command
:
string
payload
:
ZpiObjectPayload
Optional
waiterID
:
number
Optional
timeout
:
number
expectedStatuses
:
ZnpCommandStatus
[]
= ...
Returns
Promise
<
ZpiObject
<
"Response"
>
>
request
Zdo
requestZdo
(
clusterId
:
ClusterId
,
payload
:
Buffer
<
ArrayBufferLike
>
,
waiterID
?:
number
,
)
:
Promise
<
void
>
Parameters
clusterId
:
ClusterId
payload
:
Buffer
<
ArrayBufferLike
>
Optional
waiterID
:
number
Returns
Promise
<
void
>
wait
For
waitFor
(
type
:
Type
,
subsystem
:
Subsystem
,
command
:
string
,
target
:
undefined
|
string
|
number
,
transid
:
undefined
|
number
,
state
:
undefined
|
number
,
timeout
?:
number
,
)
:
{
ID
:
number
;
start
:
()
=>
{
ID
:
number
;
promise
:
Promise
<
ZpiObject
<
"Response"
>
>
}
;
}
Parameters
type
:
Type
subsystem
:
Subsystem
command
:
string
target
:
undefined
|
string
|
number
transid
:
undefined
|
number
state
:
undefined
|
number
timeout
:
number
= timeouts.default
Returns
{
ID
:
number
;
start
:
()
=>
{
ID
:
number
;
promise
:
Promise
<
ZpiObject
<
"Response"
>
>
}
;
}
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
close
is
Initialized
open
request
request
With
Reply
request
Zdo
wait
For
zigbee-herdsman
Loading...