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>
}

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.

unbind

unbind(clusterName)

Unbind a BoundCluster instance from this endpoint which was previously bound using bind.

Parameters

Name Type Description
clusterName
string