tree: 418c5016084afca93d2f7cd29cc07d4d98845c12 [path history] [tgz]
  1. tests/
  2. app_config_dependent_sources.cmake
  3. app_config_dependent_sources.gni
  4. BUILD.gn
  5. CodegenIntegration.cpp
  6. CodegenIntegration.h
  7. README.md
  8. TemperatureMeasurementCluster.cpp
  9. TemperatureMeasurementCluster.h
src/app/clusters/temperature-measurement-server/README.md

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
}