struct

Matter::Cluster::Definitions::Scenes::AttributeValuePair

Inherits TLV::Serializable < Struct < Value < Object

This data type indicates a combination of an identifier and the value of an attribute.

Constructors

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

attribute_id

This field shall be present or not present, for all instances in the Scenes cluster. If this field is not present, then the data type of AttributeValue shall be determined by the order and data type defined in the cluster specification. Otherwise the data type of AttributeValue shall be the data type of the attribute indicated by AttributeID.

Source
attribute_id=(attribute_id : DataType::AttributeId)

This field shall be present or not present, for all instances in the Scenes cluster. If this field is not present, then the data type of AttributeValue shall be determined by the order and data type defined in the cluster specification. Otherwise the data type of AttributeValue shall be the data type of the attribute indicated by AttributeID.

Source
attribute_value

This is the attribute value as part of an extension field set. See AttributeID to determine the data type for this field.

Source
attribute_value=(attribute_value : TLV::Any)

This is the attribute value as part of an extension field set. See AttributeID to determine the data type for this field.

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