Add all-clusters-app.zap file to all-clusters-app #3901
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
This PR contains the
.zap
configuration that maps the current configuration of thegen/
folder fore theall-clusters-app
demo.This is similar to #3610 and #3882
For example, one may generate the content of
gen/
folder running:There is still a difference between this
ZAP
configuration and the currentAppBuilder
configuration though.The current
AppBuilder
configuration uses 2 endpoints, while this configuration file uses 1. The rationale behind that is because ZAP does not (yet) generateendpoint_config.h
which contains the code to deal with multiple endpoints.I though it would make sense to wait for
ZAP
to be able to generateendpoint_config.h
before adding this endpoint to the configuration file. But if reviewers think otherwise I can add it now.At some point, we will get rid of the code of the
gen/
folder. And the code should be generated from this file.Summary of Changes
all-clusters-app.zap
intoexamples/all-clusters-app/all-clusters-common