struct
Matter::InteractionModel::EventPath
- Matter::InteractionModel::EventPath
- Struct
- Value
- Object
Overview
Event path identifying a specific event Supports both list-form [endpoint, cluster, event, is_urgent] and structure-form Note: fixed_size: true ensures proper type widths for iOS compatibility
Included Modules
- TLV::Serializable
Defined in:
matter/interaction_model/paths.crConstructors
- .new(any : TLV::Any)
- .new(endpoint : UInt16 | Nil = nil, cluster : UInt32 | Nil = nil, event : UInt32 | Nil = nil, is_urgent : Bool = false)
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 : EventPath) : Bool
- #cluster : UInt32 | Nil
- #cluster=(cluster : UInt32 | Nil)
- #endpoint : UInt16 | Nil
- #endpoint=(endpoint : UInt16 | Nil)
- #event : UInt32 | Nil
- #event=(event : UInt32 | Nil)
- #is_urgent : Bool
- #is_urgent=(is_urgent : Bool)
- #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
-
#wildcard?
Wildcard path matches all endpoints/clusters/events
Constructor Detail
def self.new(endpoint : UInt16 | Nil = nil, cluster : UInt32 | Nil = nil, event : UInt32 | Nil = nil, is_urgent : Bool = false)
#
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
#