class Matter::Controller::ImClient

Defined in:

matter/controller/im_client.cr

Constant Summary

Log = ::Log.for("matter.controller.im")
MSG_INVOKE_REQUEST = 8_u8
MSG_INVOKE_RESPONSE = 9_u8
MSG_READ_REQUEST = 2_u8
MSG_REPORT_DATA = 5_u8
MSG_WRITE_REQUEST = 6_u8
MSG_WRITE_RESPONSE = 7_u8

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client, timeout : Time::Span = 10.seconds) #

[View source]

Instance Method Detail

def invoke(session : Session::SecureContext, peer : Socket::IPAddress, endpoint_id : UInt16, cluster_id : UInt32, command_id : UInt32, fields : Bytes = Bytes.empty) : InteractionModel::InvokeResponseMessage #

[View source]
def read_attribute(session : Session::SecureContext, peer : Socket::IPAddress, endpoint_id : UInt16, cluster_id : UInt32, attribute_id : UInt32) : InteractionModel::ReportDataMessage #

[View source]
def write_attribute(session : Session::SecureContext, peer : Socket::IPAddress, endpoint_id : UInt16, cluster_id : UInt32, attribute_id : UInt32, value : Bytes, timed_request : Bool = false, suppress_response : Bool = false) : InteractionModel::WriteResponseMessage #

[View source]
def write_attributes(session : Session::SecureContext, peer : Socket::IPAddress, writes : Array(Tuple(UInt16, UInt32, UInt32, Bytes)), timed_request : Bool = false, suppress_response : Bool = false) : InteractionModel::WriteResponseMessage #

[View source]