struct
Matter::InteractionModel::CommandPath
- Matter::InteractionModel::CommandPath
- Struct
- Value
- Object
Overview
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
Included Modules
- TLV::Serializable
Defined in:
matter/interaction_model/paths.crConstructors
Class Method Summary
- .from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
- .from_slice(bytes : Bytes)
- .from_tlv(any : TLV::Any)
- .from_tlv(data : Bytes)
Instance Method Summary
- #==(other : CommandPath) : Bool
- #cluster : UInt32
- #cluster=(cluster : UInt32)
- #command : UInt32
- #command=(command : UInt32)
- #endpoint : UInt16
- #endpoint=(endpoint : UInt16)
- #to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #to_slice : Bytes
- #to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s : String
#
Description copied from class Object
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.
def to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
#