Matter setting CarbonDioxideConcentrationMeasurement value.

Hello,

I am developing matter sensor and I would like to send data to `MeasuredValue` attribute of `CarbonDioxideConcentrationMeasurement` cluster. I followed this tutorial https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/matter/getting_started/adding_clusters.html. The only thing I changed is that I turned on CO2 cluster and its attribute `MeasuredValue`. I wanted to set the value with this piece of code:

Clusters::CarbonDioxideConcentrationMeasurement::Attributes::MeasuredValue::Set(cluster_id, co2_val);
, but it turned out `Set` function does not exist for `CarbonDioxideConcentrationMeasurement`.
All those `Set` functions are implemented in Accessors.h which is located in `sdk_path/modules/lib/mater/zzz_generated` and I wonder when was this folder generated and why it does contain `Set` functions for clusters used in the samples and not for others. I could implement my own "accessor" for the required cluster, but I would like to ask if I'm missing something, because there is no `Accessors.h` inside my src/zap-generated folder.
Thank you for your answer.
Best regards,
Filip Mrazek
Related