Skip to content

Commit

Permalink
[Feature] Add dishwasher app example (#27935)
Browse files Browse the repository at this point in the history
* Add dishwasher app example

* Add operational state cluster in dishwasher-app linux example

* update dishwasher app's zap , with dishwasher device's type

* remove unuseful code

* Remove unassociate code

* remove unuseful file

* remove ASR example in dishwasher-app

* Add document index for dishwasher-app

* Restyled by clang-format

* Restyled by gn

* add dishwasher into build linux target

* remove unuseful code

* sync code of OPSTATE from all-cluster-app

* fix zap error

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 5, 2024
1 parent 04813a8 commit fbfd68f
Show file tree
Hide file tree
Showing 19 changed files with 12,962 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ shell/**/README
smoke-co-alarm-app/**/README
```

## Dishwasher example

```{toctree}
:glob:
:maxdepth: 1
dishwasher-app/**/README
```

## Temperature measurement example

```{toctree}
Expand Down
28 changes: 28 additions & 0 deletions examples/dishwasher-app/dishwasher-common/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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")

config("config") {
include_dirs = [ "include" ]
}

chip_data_model("dishwasher-common") {
zap_file = "dishwasher-app.zap"

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

0 comments on commit fbfd68f

Please sign in to comment.