Open svn-matterize opened 2 weeks ago
Any news about this issue?
@svn-matterize Sorry for the delayed response, you cannot use esp_matter_array for storage because esp-matter doesn’t support array attribute storage. There is API to set Accuracy in the connectedhomeip SDK SetMeasurementAccuracy. You have to use this.
@jadhavrohit924 , attribute storage, are you mentioning (ATTRIBUTE_FLAG_NONVOLATILE)
nvs storage?
Is it possible to attribute::update/set attribute value using esp_matter_array, if the flag is (ATTRIBUTE_FLAG_NONE)
?
How to form the struct value to array
using esp_matter_array
any example.
Independent of attribute quality, storage of arrays and structs are not possible using esp-matter because for such attributes there is delegate implementation in the connectedhomeip SDK. But delegate is missing for ElectricalEnergyMeasurement cluster so you have to reach to the SDK to update/set the attribute of this cluster.
Trying to write a array value to the attribute
ElectricalEnergyMeasurement::Attributes::Accuracy::Id
using esp_matter_arrayDevice log during attribute update
Chip tool read back
while reading the attribute device log is