struct

Matter::Cluster::LabelStruct

Inherits JSON::Serializable < TLV::Serializable < Struct < Value < Object

Shared struct for FixedLabel (0x0040) and UserLabel (0x0041) clusters.

Constructors

new(label : String, value : String)
Source
new(any : TLV::Any)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
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

label
Source
label=(label : String)
Source
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Source
to_slice
Source
to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source
value
Source
value=(value : String)
Source