Matter::InteractionModel::EventPath
Inherits TLV::Serializable < Struct < Value < Object
Event path identifying a specific event Supports both list-form and structure-form Note: fixed_size: true ensures proper type widths for iOS compatibility
Matter spec allows Boolean true as a wildcard indicator for path fields.
Some controllers may send true instead of omitting fields for wildcards.
Constructors
new(any : TLV::Any)
Sourcenew(node : UInt64 | Nil = nil, endpoint : UInt16 | Nil = nil, cluster : UInt32 | Nil = nil, event : UInt32 | Nil = nil, is_urgent : Bool = false)
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 : EventPath) : Bool
Sourcecluster
Sourcecluster=(value : UInt32 | Nil)
Sourcecluster_raw
Sourcecluster_raw=(cluster_raw : UInt32 | Bool | Nil)
Sourceendpoint
Sourceendpoint=(value : UInt16 | Nil)
Sourceendpoint_raw=(endpoint_raw : UInt16 | Bool | Nil)
Internal storage accepts Bool for wildcard indicator from iOS
event
Sourceevent=(value : UInt32 | Nil)
Sourceevent_raw
Sourceevent_raw=(event_raw : UInt32 | Bool | Nil)
Sourceis_urgent=(is_urgent : Bool)
Sourceis_urgent?
Sourcenode_raw
Sourcenode_raw=(node_raw : UInt64 | Bool | Nil)
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