abstract class
Matter::Cluster::Base
- Matter::Cluster::Base
- Reference
- Object
Overview
Base class for all cluster implementations
Direct Known Subclasses
- Matter::Cluster::BasicInformationCluster
- Matter::Cluster::DescriptorCluster
- Matter::Cluster::GroupsCluster
- Matter::Cluster::IdentifyCluster
- Matter::Cluster::LevelControlCluster
- Matter::Cluster::NetworkCommissioningCluster
- Matter::Cluster::OnOffCluster
- Matter::Cluster::ScenesCluster
Defined in:
matter/cluster/cluster.crConstructors
Instance Method Summary
-
#attributes : Array(AttributeMetadata)
Get all attribute metadata
- #cluster_id : DataType::ClusterId
- #cluster_id=(cluster_id : DataType::ClusterId)
-
#commands : Array(CommandMetadata)
Get all command metadata
- #data_version : UInt32
- #data_version=(data_version : UInt32)
- #endpoint_id : DataType::EndpointNumber
- #endpoint_id=(endpoint_id : DataType::EndpointNumber)
-
#events : Array(EventMetadata)
Get all event metadata
-
#get_attribute_metadata(attribute_id : UInt32) : AttributeMetadata | Nil
Get attribute metadata by ID
-
#get_command_metadata(command_id : UInt32) : CommandMetadata | Nil
Get command metadata by ID
-
#invoke_command(command_id : UInt32, fields : Bytes = Bytes.new(0)) : InteractionModel::Status | Bytes
Invoke a command
-
#name : String
Get cluster name
-
#read_attribute(attribute_id : UInt32) : InteractionModel::Status | Bytes
Read an attribute value
-
#write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
Write an attribute value
Constructor Detail
Instance Method Detail
def get_attribute_metadata(attribute_id : UInt32) : AttributeMetadata | Nil
#
Get attribute metadata by ID
def invoke_command(command_id : UInt32, fields : Bytes = Bytes.new(0)) : InteractionModel::Status | Bytes
#
Invoke a command
def read_attribute(attribute_id : UInt32) : InteractionModel::Status | Bytes
#
Read an attribute value
def write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
#
Write an attribute value