class
Matter::ProtocolHandler
- Matter::ProtocolHandler
- Reference
- Object
Overview
Protocol handler for Matter devices
Integrates:
- UDP transport layer
- Session management (PASE/CASE)
- Interaction Model routing
- Cluster command/attribute handling
Defined in:
matter/protocol_handler.crConstructors
Instance Method Summary
-
#add_cluster(endpoint : UInt16, cluster : Cluster::OnOffCluster | Cluster::BasicInformationCluster)
Add a cluster to an endpoint
-
#clusters : Hash(UInt16, Hash(UInt32, Cluster::OnOffCluster | Cluster::BasicInformationCluster))
Cluster storage (endpoint => cluster_id => cluster)
- #commissioning_mode=(commissioning_mode : Bool)
- #commissioning_mode? : Bool
- #crypto : Crypto::StandardCrypto
-
#on_commissioned : Proc(Nil) | Nil
Callbacks
-
#on_commissioned=(on_commissioned : Proc(Nil) | Nil)
Callbacks
- #sessions : Hash(UInt16, Session::SecureContext)
-
#setup_pin : UInt32
PASE session establishment
-
#setup_pin=(setup_pin : UInt32)
PASE session establishment
-
#start
Start listening for messages
-
#stop
Stop handler
- #transport : Transport::UDPTransport
- #unsecured_session : Session::UnsecuredContext
Constructor Detail
Instance Method Detail
def add_cluster(endpoint : UInt16, cluster : Cluster::OnOffCluster | Cluster::BasicInformationCluster)
#
Add a cluster to an endpoint
def clusters : Hash(UInt16, Hash(UInt32, Cluster::OnOffCluster | Cluster::BasicInformationCluster))
#
Cluster storage (endpoint => cluster_id => cluster)