-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add zap tooling to Docker container #84
Conversation
Interesting! Are you building end device or router projects with the firmware builder? |
Yeh I am using it to build router firmware. Currently the zcl config is device specific, will probably need to extend manifest to set manufacturer/product strings here. |
If you break the device model and manufacturer info out into a |
I initially thought of doing something like this, however ZCL configuration works different to the main project configurator. |
Ahh. Yeah, we don't currently have anything to modify JSON files. Perhaps something like: json_config:
- file: "config/zcl/zcl_config.zap"
jq: |
.endpointTypes[].clusters[].attributes[] | select(.name == "model name")
| .defaultValue = "some model"'
- file: "config/zcl/zcl_config.zap"
jq: |
.endpointTypes[].clusters[].attributes[] | select(.name == "manufacturer name")
| .defaultValue = "some manufacturer"'
|
Sample implementation, untested: #85 |
I think that looks good, will test |
Add ZAP tooling to docker container which allows for Zigbee apps that require ZCL clusters to be built (such as any of the example apps like Z3Light and Z3Switch).
slc
will automatically generate all required files fromconfig/zcl/zcl_config.zap
saved under the project src folder.Snippet from .slcp file