Skip to content

Commit

Permalink
[ZAP] Add a script to update .zap files automatically (#8806)
Browse files Browse the repository at this point in the history
* [ZAP] Add a script to update .zap files automatically

* Update zap files
  • Loading branch information
vivien-apple authored and pull[bot] committed Sep 1, 2021
1 parent 141126f commit 1281812
Show file tree
Hide file tree
Showing 13 changed files with 213 additions and 100 deletions.
27 changes: 13 additions & 14 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 39,
"featureLevel": 45,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -512,7 +512,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -563,7 +563,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -3433,7 +3433,7 @@
"reportableChange": 0
},
{
"name": "supported fabrics",
"name": "SupportedFabrics",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -3448,7 +3448,7 @@
"reportableChange": 0
},
{
"name": "commissioned fabrics",
"name": "CommissionedFabrics",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -6677,7 +6677,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -6728,7 +6728,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -10075,7 +10075,7 @@
"commands": [],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "client",
Expand Down Expand Up @@ -10146,7 +10146,7 @@
"reportableChange": 0
},
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -14438,7 +14438,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -14489,7 +14489,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -17089,6 +17089,5 @@
"endpointVersion": null,
"deviceIdentifier": null
}
],
"log": []
}
]
}
13 changes: 6 additions & 7 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 39,
"featureLevel": 45,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -2113,7 +2113,7 @@
],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "client",
Expand All @@ -2139,7 +2139,7 @@
"commands": [],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -2796,7 +2796,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -2847,7 +2847,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -3350,6 +3350,5 @@
"endpointVersion": null,
"deviceIdentifier": null
}
],
"log": []
]
}
19 changes: 9 additions & 10 deletions examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 39,
"featureLevel": 45,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -512,7 +512,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -563,7 +563,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -2931,7 +2931,7 @@
],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "client",
Expand All @@ -2957,7 +2957,7 @@
"commands": [],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -3646,7 +3646,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -3721,7 +3721,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -4935,6 +4935,5 @@
"endpointVersion": "",
"deviceIdentifier": null
}
],
"log": []
}
]
}
13 changes: 6 additions & 7 deletions examples/lock-app/lock-common/lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -712,7 +712,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -3750,7 +3750,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -3801,7 +3801,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -4362,6 +4362,5 @@
"endpointVersion": 0,
"deviceIdentifier": null
}
],
"log": []
}
]
}
17 changes: 8 additions & 9 deletions examples/pump-app/pump-common/pump-app.zap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 39,
"featureLevel": 45,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -512,7 +512,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -563,7 +563,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -2744,7 +2744,7 @@
],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "client",
Expand All @@ -2770,7 +2770,7 @@
"commands": [],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -3965,7 +3965,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -4016,7 +4016,7 @@
]
},
{
"name": "On/off",
"name": "On/Off",
"code": 6,
"mfgCode": null,
"define": "ON_OFF_CLUSTER",
Expand Down Expand Up @@ -4999,6 +4999,5 @@
"endpointVersion": 1,
"deviceIdentifier": null
}
],
"log": []
]
}
Loading

0 comments on commit 1281812

Please sign in to comment.