struct

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)
Source
new(node : UInt64 | Nil = nil, endpoint : UInt16 | Nil = nil, cluster : UInt32 | Nil = nil, event : UInt32 | Nil = nil, is_urgent : Bool = false)
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 : EventPath) : Bool
Source
cluster
Source
cluster=(value : UInt32 | Nil)
Source
cluster_raw
Source
cluster_raw=(cluster_raw : UInt32 | Bool | Nil)
Source
endpoint
Source
endpoint=(value : UInt16 | Nil)
Source
endpoint_raw

Internal storage accepts Bool for wildcard indicator from iOS

Source
endpoint_raw=(endpoint_raw : UInt16 | Bool | Nil)

Internal storage accepts Bool for wildcard indicator from iOS

Source
event
Source
event=(value : UInt32 | Nil)
Source
event_raw
Source
event_raw=(event_raw : UInt32 | Bool | Nil)
Source
is_urgent=(is_urgent : Bool)
Source
is_urgent?
Source
node

Getters that convert Bool (wildcard) to nil

Source
node=(value : UInt64 | Nil)

Setters for API compatibility

Source
node_raw
Source
node_raw=(node_raw : UInt64 | Bool | Nil)
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
wildcard?

Wildcard path matches all endpoints/clusters/events

Source