Constructor
Endpoint
new Endpoint(node, descriptor)Creates a new Endpoint instance.
Parameters
Name | Type | Description |
---|---|---|
node
|
ZCLNode | |
descriptor
|
object | |
endpointId
|
number | |
inputClusters
|
Array.<number> | |
|
Methods
bind
bind(clusterName, clusterImpl)Bind a BoundCluster instance to this endpoint. This is needed for handling incoming commands on the Cluster instance.
Parameters
Name | Type | Description |
---|---|---|
clusterName
|
string | |
clusterImpl
|
BoundCluster | New BoundCluster instance. |
makeDefaultResponseFrame
makeDefaultResponseFrame(receivedFrame, success): ZCLStandardHeader|ZCLMfgSpecificHeaderReturns a default response frame with an error status code.
Parameters
Name | Type | Description |
---|---|---|
receivedFrame
|
* | |
success
|
boolean |
Returns
ZCLStandardHeader
|
ZCLMfgSpecificHeader
unbind
unbind(clusterName)Unbind a BoundCluster instance from this endpoint which was previously bound using bind.
Parameters
Name | Type | Description |
---|---|---|
clusterName
|
string |