Skip to content

Commit

Permalink
Add airquality example (#28447)
Browse files Browse the repository at this point in the history
* initial implementation of air-quality-sensor-app

* added AirQuality device endpoint

* corrected device type

* rename AirQualitySensorAppCommandHandler to avoid confusion with CommandHandlerInterface

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Restyled by prettier-markdown

* fixed toc issue in readme

* fixed zap generate issue

* delete AirQualitySensorAttrUpdateHandler and code tidy up

* added air-quality-sensor-app to examples/index.md toctree

* changed concentrator to concentration

* removed unused Ui::Windows

* fixed spelling

* fixed doc build error

* fixed doc build error

* fixed spelling in README

* removed unused clusters and fixed cluter revisions

* removed DiagnosticLogs

* regenerate air-quality-sensor-app.matter after merging master

* readme spelling and restyle

* fixed cluster revisions

* code tidy up

* Restyled by clang-format

* regenerated matter file

* fixed min/max value updates

* removed min max function maps

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Jan 12, 2024
1 parent 17d061d commit 1388806
Show file tree
Hide file tree
Showing 14 changed files with 12,423 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
The Matter SDK provides examples of Matter devices for different development
platforms.

## Air Quality Sensor example

```{toctree}
:glob:
:maxdepth: 1
air-quality-sensor-app/**/README
```

## All clusters example

```{toctree}
Expand Down
24 changes: 24 additions & 0 deletions examples/air-quality-sensor-app/air-quality-sensor-common/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build_overrides/chip.gni")
import("${chip_root}/src/app/chip_data_model.gni")

chip_data_model("air-quality-sensor-common") {
zap_file = "air-quality-sensor-app.zap"

zap_pregenerated_dir =
"${chip_root}/zzz_generated/air-quality-sensor-app/zap-generated"
is_server = true
}
Loading

0 comments on commit 1388806

Please sign in to comment.