class Matter::ProtocolHandler

Overview

Protocol handler for Matter devices

Integrates:

Defined in:

matter/protocol_handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(setup_pin : UInt32, port : Int32 = 5540) #

[View source]

Instance Method Detail

def add_cluster(endpoint : UInt16, cluster : Cluster::OnOffCluster | Cluster::BasicInformationCluster) #

Add a cluster to an endpoint


[View source]
def clusters : Hash(UInt16, Hash(UInt32, Cluster::OnOffCluster | Cluster::BasicInformationCluster)) #

Cluster storage (endpoint => cluster_id => cluster)


[View source]
def commissioning_mode=(commissioning_mode : Bool) #

[View source]
def commissioning_mode? : Bool #

[View source]
def crypto : Crypto::StandardCrypto #

[View source]
def on_commissioned : Proc(Nil) | Nil #

Callbacks


[View source]
def on_commissioned=(on_commissioned : Proc(Nil) | Nil) #

Callbacks


[View source]
def sessions : Hash(UInt16, Session::SecureContext) #

[View source]
def setup_pin : UInt32 #

PASE session establishment


[View source]
def setup_pin=(setup_pin : UInt32) #

PASE session establishment


[View source]
def start #

Start listening for messages


[View source]
def stop #

Stop handler


[View source]
def transport : Transport::UDPTransport #

[View source]
def unsecured_session : Session::UnsecuredContext #

[View source]