Endpoint

Class representing an endpoint on a node. It contains a reference to its clusters and bindings.

Constructor

Endpoint

new Endpoint(node, descriptor)

Creates a new Endpoint instance.

Parameters

Name Type Description
node
ZCLNode
descriptor
object
endpointId
number
inputClusters
Array.<number>
}

Instance 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, statusopt): ZCLStandardHeader|ZCLMfgSpecificHeader

Returns a default response frame with an error status code.

Parameters

Name Type Description
receivedFrame
*
success
boolean
status
string <optional>

Optional ZCL status code to use in the response

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