struct

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)
Source
new(any : TLV::Any)
Source

Class methods

from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Source
from_slice(bytes : Bytes)
Source
from_tlv(any : TLV::Any)
Source
from_tlv(data : Bytes)
Source

Instance methods

==(other : CommandPath) : Bool
Source
cluster
Source
cluster=(cluster : UInt32)
Source
command
Source
command=(command : UInt32)
Source
endpoint
Source
endpoint=(endpoint : UInt16)
Source
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Source
to_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.

Source
to_slice
Source
to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source