Matter::InteractionModel::CommandPath
Inherits TLV::Serializable < Struct < Value < Object
Command path identifying a specific command Supports both list-form [endpoint, cluster, command] and structure-form {0=>endpoint, 1=>cluster, 2=>command} Note: fixed_size: true ensures proper type widths for iOS compatibility
Constructors
new(endpoint : UInt16, cluster : UInt32, command : UInt32)
Sourcenew(any : TLV::Any)
SourceClass methods
from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Sourcefrom_slice(bytes : Bytes)
Sourcefrom_tlv(any : TLV::Any)
Sourcefrom_tlv(data : Bytes)
SourceInstance methods
==(other : CommandPath) : Bool
Sourcecluster
Sourcecluster=(cluster : UInt32)
Sourcecommand
Sourcecommand=(command : UInt32)
Sourceendpoint
Sourceendpoint=(endpoint : UInt16)
Sourceto_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
to_slice
Sourceto_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source