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

Overview

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

Included Modules

Defined in:

matter/cluster/definitions/scenes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Slice(UInt8)) #

[View source]

Instance Method Detail

def 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.


[View source]
def 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.


[View source]
def attribute_value : TLV::Value #

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


[View source]
def attribute_value=(attribute_value : TLV::Value) #

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


[View source]