Matter::MatterNode
Inherits Reference < Object
MatterNode represents a complete Matter device with multiple endpoints
Constructors
new
SourceInstance methods
endpoints
Sourceget_cluster(endpoint_id : UInt16, cluster_type : T.class) : T | Nil forall T
Get a typed cluster from an endpoint Usage: node.get_cluster(1_u16, OnOffCluster)
get_cluster!(endpoint_id : UInt16, cluster_type : T.class) : T forall T
Get a typed cluster from an endpoint (raises if not found)
invoke_command(endpoint_id : UInt16, cluster_id : UInt32, command_id : UInt32, fields : Bytes = Bytes.new(0)) : InteractionModel::Status | Bytes
Invoke a command on a cluster on an endpoint
read_attribute(endpoint_id : UInt16, cluster_id : UInt32, attribute_id : UInt32) : InteractionModel::Status | Bytes
Read an attribute from a cluster on an endpoint
write_attribute(endpoint_id : UInt16, cluster_id : UInt32, attribute_id : UInt32, value : Bytes) : InteractionModel::Status
Write an attribute to a cluster on an endpoint