Skip to content

Commit

Permalink
Add API for Concentration Measurement Clusters (#28576)
Browse files Browse the repository at this point in the history
* WIP; added Concentration Measurement Instance Class and Cluster Objects, implemented Read handler

* Server updates to support an API for the concentration measurement clusters

* Updating all-clusters-app to give example of the new concentration measurement API

* regenerated code

* Restyled by whitespace

* Restyled by gn

* Restyled by prettier-json

* Reworked the cluster implementation to be a templated class so that we can turn off parts of it depending on what features are being used. Also added some factory functions to help with bringing up various feature sets to make it clearer for the user

* Modifed all-clusters concentration instances to use the new factory functions

* Removed the concentration-measurement-server.cpp as no longer used due to templating

* Code re-genned

* Changing name of the concetration instances to use the word instances rather than Server, per PR comment

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
mhazley and restyled-commits committed Aug 23, 2023
1 parent 275e1a1 commit 8e77e1a
Show file tree
Hide file tree
Showing 24 changed files with 1,929 additions and 5,844 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2080,9 +2080,9 @@ endpoint 1 {
}

server cluster CarbonMonoxideConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2092,9 +2092,9 @@ endpoint 1 {
}

server cluster CarbonDioxideConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2104,9 +2104,9 @@ endpoint 1 {
}

server cluster NitrogenDioxideConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2116,9 +2116,9 @@ endpoint 1 {
}

server cluster OzoneConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2128,9 +2128,9 @@ endpoint 1 {
}

server cluster Pm25ConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2140,9 +2140,9 @@ endpoint 1 {
}

server cluster FormaldehydeConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2152,9 +2152,9 @@ endpoint 1 {
}

server cluster Pm1ConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2164,9 +2164,9 @@ endpoint 1 {
}

server cluster Pm10ConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2176,9 +2176,9 @@ endpoint 1 {
}

server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand All @@ -2188,9 +2188,9 @@ endpoint 1 {
}

server cluster RadonConcentrationMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue;
ram attribute maxMeasuredValue;
callback attribute measuredValue;
callback attribute minMeasuredValue;
callback attribute maxMeasuredValue;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand Down
Loading

0 comments on commit 8e77e1a

Please sign in to comment.