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
Parents
  • Hi,

    did anybody have a time to take a look at my problem with settng measured data? I investigate it a little bit and I find out that it logs the following to the console at startup:

    <err> chip: [DMG]Endpoint 1, Cluster 0x0000_040D not found in IncreaseClusterDataVersion!

  • Hi Filip,

    Thank you for your patience.

    When I returned to this case today, I made sure to read the Matter specification along with it, and I found that the CarbonDioxideConcentrationMeasurement cluster should be more similar to the RelativeHumidityMeasurement you shared as an example. Neither cluster has write access for their MeasuredValue attribute, yet you are able to use Set on the Relative Humidity.

    I will contact the developers about this so we can find out what the proper functionality is.

    Best regards,

    Maria

Reply
  • Hi Filip,

    Thank you for your patience.

    When I returned to this case today, I made sure to read the Matter specification along with it, and I found that the CarbonDioxideConcentrationMeasurement cluster should be more similar to the RelativeHumidityMeasurement you shared as an example. Neither cluster has write access for their MeasuredValue attribute, yet you are able to use Set on the Relative Humidity.

    I will contact the developers about this so we can find out what the proper functionality is.

    Best regards,

    Maria

Children
Related