blob: d5357afe644e358dd384ab2fd55e5372d8f88c79 [file] [view]
This cluster is currently following a code driven approach.
This means that the Accessors for the attribute MeasuredValue are no longer
available.
Now to set the value for this attribute the following code change applies:
# BEFORE (using the Accessors)
app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::Set(1, static_cast<int16_t>(1000));
# CURRENT (using the code driven approach)
CHIP_ERROR err = app::Clusters::TemperatureMeasurement::SetMeasuredValue(1, static_cast<int16_t>(1000));
if (err == CHIP_NO_ERROR)
{
// SetMeasuredValue() succeeded
}
else
{
// SetMeasuredValue() failed
}