tree: e564fd142c131000a4e9f0c74c7f69ed428b5ecc
  1. tests/
  2. app_config_dependent_sources.cmake
  3. app_config_dependent_sources.gni
  4. BUILD.gn
  5. CodegenIntegration.cpp
  6. CodegenIntegration.h
  7. IlluminanceMeasurementCluster.cpp
  8. IlluminanceMeasurementCluster.h
  9. README.md
src/app/clusters/illuminance-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::IlluminanceMeasurement::Attributes::MeasuredValue::Set(1, static_cast<uint16_t>(1000));

CURRENT (using the code driven approach)

CHIP_ERROR err = app::Clusters::IlluminanceMeasurement::SetMeasuredValue(1, static_cast<uint16_t>(1000));
if (err == CHIP_NO_ERROR)
{
    // SetMeasuredValue() succeeded
}
else
{
    // SetMeasuredValue() failed
}