class
Matter::Cluster::DiagnosticLogsCluster
- Matter::Cluster::DiagnosticLogsCluster
- Matter::Cluster::Base
- Reference
- Object
Overview
Diagnostic Logs Cluster (0x0032)
Provides access to device logs for debugging and diagnostics. Required by Apple Home for accessory compatibility.
Matter Spec: Core 11.10
Defined in:
matter/cluster/diagnostic_logs_cluster.crConstant Summary
-
ACCEPTED_COMMAND_LIST =
65529_u32 -
ATTRIBUTE_LIST =
65531_u32 -
CLUSTER_ID =
50_u32 -
CLUSTER_REVISION =
65533_u32 -
Global attributes
-
CMD_RETRIEVE_LOGS_REQUEST =
0_u32 -
Command IDs
-
CMD_RETRIEVE_LOGS_RESPONSE =
1_u32 -
Response IDs
-
FEATURE_MAP =
65532_u32 -
GENERATED_COMMAND_LIST =
65528_u32
Constructors
Class Method Summary
-
.cluster_id : UInt32
Diagnostic Logs Cluster (0x0032)
Instance Method Summary
-
#attributes : Array(AttributeMetadata)
Get all attribute metadata
-
#clear_logs
Public API: Clear logs
-
#commands : Array(CommandMetadata)
Get all command metadata
-
#log(message : String)
Public API: Add a log entry
-
#name : String
Get cluster name
-
#read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | Bytes
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster
Instance methods inherited from class Matter::Cluster::Base
attributes : Array(AttributeMetadata)
attributes,
cluster_id : DataType::ClusterId
cluster_id,
cluster_id=(cluster_id : DataType::ClusterId)
cluster_id=,
commands : Array(CommandMetadata)
commands,
data_version : UInt32
data_version,
data_version=(data_version : UInt32)
data_version=,
endpoint_id : DataType::EndpointNumber
endpoint_id,
endpoint_id=(endpoint_id : DataType::EndpointNumber)
endpoint_id=,
events : Array(EventMetadata)
events,
get_attribute_metadata(attribute_id : UInt32) : AttributeMetadata | Nil
get_attribute_metadata,
get_command_metadata(command_id : UInt32) : CommandMetadata | Nil
get_command_metadata,
invoke_command(command_id : UInt32, fields : Bytes = Bytes.new(0), session_id : UInt64 | Nil = nil, is_case_session : Bool = false, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | CommandResponse
invoke_command,
name : String
name,
on_attribute_changed : Proc(UInt16, UInt32, UInt32, Nil) | Nil
on_attribute_changed,
on_attribute_changed=(on_attribute_changed : Proc(UInt16, UInt32, UInt32, Nil) | Nil)
on_attribute_changed=,
read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | Bytes
read_attribute,
write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
write_attribute
Constructor methods inherited from class Matter::Cluster::Base
new(endpoint_id : DataType::EndpointNumber, cluster_id : DataType::ClusterId)
new
Constructor Detail
Class Method Detail
Diagnostic Logs Cluster (0x0032)
Provides access to device logs for debugging and diagnostics. Required by Apple Home for accessory compatibility.
Matter Spec: Core 11.10
Instance Method Detail
Get all attribute metadata
Get all command metadata
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster