Replies: 2 comments
-
|
That .matter file looks fine, yes. The codegen that ends up generating FIXED_ENDPOINT_COUNT uses the .zap file as input, not the .matter file, for what it's worth. I don't know exactly which build system you are using and which commands it's running, so hard to say anything intelligent about that part; see the docs in |
Beta Was this translation helpful? Give feedback.
-
|
I'm building with Espressif's MATTER_CHIP_PATH points to the ZAP_CLI=~/Projects/Personal/ESP-IDF/zap-mac-arm64/zap-cli
TPL="$MATTER_CHIP_PATH/src/app/zap-templates/matter-idl-server.json"
ZCL="$MATTER_CHIP_PATH/src/app/zap-templates/zcl/zcl.json"
ZAP="$PWD/main/datamodel.zap"
IDL_OUT="$PWD/main/datamodel.matter"
"$ZAP_CLI" generate \
--tempState --noUi --noServer \
--zcl "$ZCL" \
--generationTemplate "$TPL" \
-i "$ZAP" \
-o zap-generated
mv zap-generated/Clusters.matter "$IDL_OUT" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've successfully modified one of the connectedhomeip examples (temperature-measurement-app) and it works using Matter and Thread on a couple of different ESP32-C6 devices I have. Now I'm trying to add additional endpoints (e.g.
PowerSource), and I have to generate the IDL from a modified ZAP file, and then let the build system generate the code from that. But it keeps generating empty code (e.g.FIXED_ENDPOINT_COUNTis defined as 0). I've attached the.zap, and generated.matterfiles, but I don't understand why the generated code ends up being essentially empty.The command I used to generate the
.matterfile:The generated
.matterfile seems correct to me, but I can't be sure at all.(I had to add filename extensions so Github would accept the files.)
datamodel.zap.json
Clusters.matter.txt
Any suggestions on what I might be doing wrong would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions