Skip to content

Commit 0c22a0a

Browse files
committed
Fix lint reported error
ERROR: Required attributes: EP0:AccessControl does not expose SubjectsPerAccessControlEntry(2) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1343:3 ERROR: Required attributes: EP0:AccessControl does not expose TargetsPerAccessControlEntry(3) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1343:3 ERROR: Required attributes: EP0:AccessControl does not expose AccessControlEntriesPerFabric(4) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1343:3 ERROR: Required attributes: EP0:Basic does not expose CapabilityMinima(19) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1351:3 ERROR: Required attributes: EP0:LocalizationConfiguration does not expose ActiveLocale(0) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1384:3 ERROR: Required attributes: EP0:GeneralCommissioning does not expose SupportsConcurrentConnection(4) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1398:3 ERROR: Required attributes: EP0:Switch does not expose number of positions(0) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1548:3 ERROR: Required attributes: EP0:Switch does not expose current position(1) attribute at ./examples/chef/devices/rootnode_fan_7N2TobIlOX.matter:1548:3
1 parent 1deb779 commit 0c22a0a

File tree

4 files changed

+259
-38
lines changed

4 files changed

+259
-38
lines changed

examples/chef/devices/rootnode_fan_7N2TobIlOX.matter

+23
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,20 @@ server cluster AccessControl = 31 {
188188

189189
attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
190190
attribute access(read: administer, write: administer) ExtensionEntry extension[] = 1;
191+
readonly attribute int16u subjectsPerAccessControlEntry = 2;
192+
readonly attribute int16u targetsPerAccessControlEntry = 3;
193+
readonly attribute int16u accessControlEntriesPerFabric = 4;
191194
readonly attribute attrib_id attributeList[] = 65531;
192195
readonly attribute bitmap32 featureMap = 65532;
193196
readonly attribute int16u clusterRevision = 65533;
194197
}
195198

196199
server cluster Basic = 40 {
200+
struct CapabilityMinimaStruct {
201+
int16u caseSessionsPerFabric = 0;
202+
int16u subscriptionsPerFabric = 1;
203+
}
204+
197205
critical event StartUp = 0 {
198206
INT32U softwareVersion = 0;
199207
}
@@ -228,6 +236,7 @@ server cluster Basic = 40 {
228236
attribute access(write: manage) boolean localConfigDisabled = 16;
229237
readonly attribute boolean reachable = 17;
230238
readonly attribute char_string<32> uniqueID = 18;
239+
readonly attribute CapabilityMinimaStruct capabilityMinima = 19;
231240
readonly attribute bitmap32 featureMap = 65532;
232241
readonly attribute int16u clusterRevision = 65533;
233242
}
@@ -368,7 +377,9 @@ server cluster OtaSoftwareUpdateRequestor = 42 {
368377
}
369378

370379
server cluster LocalizationConfiguration = 43 {
380+
attribute char_string<35> activeLocale = 0;
371381
readonly attribute CHAR_STRING supportedLocales[] = 1;
382+
readonly attribute attrib_id attributeList[] = 65531;
372383
readonly attribute bitmap32 featureMap = 65532;
373384
readonly attribute int16u clusterRevision = 65533;
374385
}
@@ -425,6 +436,7 @@ server cluster GeneralCommissioning = 48 {
425436
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
426437
readonly attribute RegulatoryLocationType regulatoryConfig = 2;
427438
readonly attribute RegulatoryLocationType locationCapability = 3;
439+
readonly attribute boolean supportsConcurrentConnection = 4;
428440
readonly attribute bitmap32 featureMap = 65532;
429441
readonly attribute int16u clusterRevision = 65533;
430442

@@ -1035,6 +1047,8 @@ server cluster Switch = 59 {
10351047
INT8U totalNumberOfPressesCounted = 1;
10361048
}
10371049

1050+
readonly attribute int8u numberOfPositions = 0;
1051+
readonly attribute int8u currentPosition = 1;
10381052
readonly attribute bitmap32 featureMap = 65532;
10391053
readonly attribute int16u clusterRevision = 65533;
10401054
}
@@ -1343,6 +1357,9 @@ endpoint 0 {
13431357
server cluster AccessControl {
13441358
callback attribute acl;
13451359
callback attribute extension;
1360+
callback attribute subjectsPerAccessControlEntry;
1361+
callback attribute targetsPerAccessControlEntry;
1362+
callback attribute accessControlEntriesPerFabric;
13461363
callback attribute attributeList;
13471364
ram attribute featureMap;
13481365
ram attribute clusterRevision default = 1;
@@ -1368,6 +1385,7 @@ endpoint 0 {
13681385
persist attribute localConfigDisabled;
13691386
ram attribute reachable default = 1;
13701387
callback attribute uniqueID;
1388+
callback attribute capabilityMinima;
13711389
ram attribute featureMap;
13721390
ram attribute clusterRevision default = 1;
13731391
}
@@ -1382,7 +1400,9 @@ endpoint 0 {
13821400
}
13831401

13841402
server cluster LocalizationConfiguration {
1403+
ram attribute activeLocale;
13851404
callback attribute supportedLocales;
1405+
callback attribute attributeList;
13861406
ram attribute featureMap;
13871407
ram attribute clusterRevision default = 1;
13881408
}
@@ -1400,6 +1420,7 @@ endpoint 0 {
14001420
callback attribute basicCommissioningInfo;
14011421
callback attribute regulatoryConfig;
14021422
callback attribute locationCapability;
1423+
callback attribute supportsConcurrentConnection default = 1;
14031424
ram attribute featureMap;
14041425
ram attribute clusterRevision default = 0x0001;
14051426
}
@@ -1546,6 +1567,8 @@ endpoint 0 {
15461567
}
15471568

15481569
server cluster Switch {
1570+
ram attribute numberOfPositions default = 2;
1571+
ram attribute currentPosition;
15491572
ram attribute featureMap;
15501573
ram attribute clusterRevision default = 1;
15511574
}

examples/chef/devices/rootnode_fan_7N2TobIlOX.zap

+178-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"featureLevel": 80,
2+
"featureLevel": 81,
33
"creator": "zap",
44
"keyValuePairs": [
55
{
@@ -1034,6 +1034,54 @@
10341034
"maxInterval": 65534,
10351035
"reportableChange": 0
10361036
},
1037+
{
1038+
"name": "SubjectsPerAccessControlEntry",
1039+
"code": 2,
1040+
"mfgCode": null,
1041+
"side": "server",
1042+
"type": "int16u",
1043+
"included": 1,
1044+
"storageOption": "RAM",
1045+
"singleton": 0,
1046+
"bounded": 0,
1047+
"defaultValue": "",
1048+
"reportable": 1,
1049+
"minInterval": 1,
1050+
"maxInterval": 65534,
1051+
"reportableChange": 0
1052+
},
1053+
{
1054+
"name": "TargetsPerAccessControlEntry",
1055+
"code": 3,
1056+
"mfgCode": null,
1057+
"side": "server",
1058+
"type": "int16u",
1059+
"included": 1,
1060+
"storageOption": "RAM",
1061+
"singleton": 0,
1062+
"bounded": 0,
1063+
"defaultValue": "",
1064+
"reportable": 1,
1065+
"minInterval": 1,
1066+
"maxInterval": 65534,
1067+
"reportableChange": 0
1068+
},
1069+
{
1070+
"name": "AccessControlEntriesPerFabric",
1071+
"code": 4,
1072+
"mfgCode": null,
1073+
"side": "server",
1074+
"type": "int16u",
1075+
"included": 1,
1076+
"storageOption": "RAM",
1077+
"singleton": 0,
1078+
"bounded": 0,
1079+
"defaultValue": "",
1080+
"reportable": 1,
1081+
"minInterval": 1,
1082+
"maxInterval": 65534,
1083+
"reportableChange": 0
1084+
},
10371085
{
10381086
"name": "AttributeList",
10391087
"code": 65531,
@@ -1422,6 +1470,22 @@
14221470
"maxInterval": 65344,
14231471
"reportableChange": 0
14241472
},
1473+
{
1474+
"name": "CapabilityMinima",
1475+
"code": 19,
1476+
"mfgCode": null,
1477+
"side": "server",
1478+
"type": "CapabilityMinimaStruct",
1479+
"included": 1,
1480+
"storageOption": "RAM",
1481+
"singleton": 1,
1482+
"bounded": 0,
1483+
"defaultValue": "",
1484+
"reportable": 1,
1485+
"minInterval": 1,
1486+
"maxInterval": 65534,
1487+
"reportableChange": 0
1488+
},
14251489
{
14261490
"name": "FeatureMap",
14271491
"code": 65532,
@@ -1758,6 +1822,22 @@
17581822
"side": "server",
17591823
"enabled": 1,
17601824
"attributes": [
1825+
{
1826+
"name": "ActiveLocale",
1827+
"code": 0,
1828+
"mfgCode": null,
1829+
"side": "server",
1830+
"type": "char_string",
1831+
"included": 1,
1832+
"storageOption": "RAM",
1833+
"singleton": 0,
1834+
"bounded": 0,
1835+
"defaultValue": "",
1836+
"reportable": 1,
1837+
"minInterval": 1,
1838+
"maxInterval": 65534,
1839+
"reportableChange": 0
1840+
},
17611841
{
17621842
"name": "SupportedLocales",
17631843
"code": 1,
@@ -1774,6 +1854,54 @@
17741854
"maxInterval": 65534,
17751855
"reportableChange": 0
17761856
},
1857+
{
1858+
"name": "GeneratedCommandList",
1859+
"code": 65528,
1860+
"mfgCode": null,
1861+
"side": "server",
1862+
"type": "array",
1863+
"included": 0,
1864+
"storageOption": "RAM",
1865+
"singleton": 0,
1866+
"bounded": 0,
1867+
"defaultValue": "",
1868+
"reportable": 1,
1869+
"minInterval": 1,
1870+
"maxInterval": 65534,
1871+
"reportableChange": 0
1872+
},
1873+
{
1874+
"name": "AcceptedCommandList",
1875+
"code": 65529,
1876+
"mfgCode": null,
1877+
"side": "server",
1878+
"type": "array",
1879+
"included": 0,
1880+
"storageOption": "RAM",
1881+
"singleton": 0,
1882+
"bounded": 0,
1883+
"defaultValue": "",
1884+
"reportable": 1,
1885+
"minInterval": 1,
1886+
"maxInterval": 65534,
1887+
"reportableChange": 0
1888+
},
1889+
{
1890+
"name": "AttributeList",
1891+
"code": 65531,
1892+
"mfgCode": null,
1893+
"side": "server",
1894+
"type": "array",
1895+
"included": 1,
1896+
"storageOption": "RAM",
1897+
"singleton": 0,
1898+
"bounded": 0,
1899+
"defaultValue": "",
1900+
"reportable": 1,
1901+
"minInterval": 1,
1902+
"maxInterval": 65534,
1903+
"reportableChange": 0
1904+
},
17771905
{
17781906
"name": "FeatureMap",
17791907
"code": 65532,
@@ -2122,6 +2250,22 @@
21222250
"maxInterval": 65534,
21232251
"reportableChange": 0
21242252
},
2253+
{
2254+
"name": "SupportsConcurrentConnection",
2255+
"code": 4,
2256+
"mfgCode": null,
2257+
"side": "server",
2258+
"type": "boolean",
2259+
"included": 1,
2260+
"storageOption": "RAM",
2261+
"singleton": 0,
2262+
"bounded": 0,
2263+
"defaultValue": "1",
2264+
"reportable": 1,
2265+
"minInterval": 1,
2266+
"maxInterval": 65534,
2267+
"reportableChange": 0
2268+
},
21252269
{
21262270
"name": "FeatureMap",
21272271
"code": 65532,
@@ -4454,6 +4598,38 @@
44544598
"side": "server",
44554599
"enabled": 1,
44564600
"attributes": [
4601+
{
4602+
"name": "number of positions",
4603+
"code": 0,
4604+
"mfgCode": null,
4605+
"side": "server",
4606+
"type": "int8u",
4607+
"included": 1,
4608+
"storageOption": "RAM",
4609+
"singleton": 0,
4610+
"bounded": 0,
4611+
"defaultValue": "2",
4612+
"reportable": 1,
4613+
"minInterval": 1,
4614+
"maxInterval": 65534,
4615+
"reportableChange": 0
4616+
},
4617+
{
4618+
"name": "current position",
4619+
"code": 1,
4620+
"mfgCode": null,
4621+
"side": "server",
4622+
"type": "int8u",
4623+
"included": 1,
4624+
"storageOption": "RAM",
4625+
"singleton": 0,
4626+
"bounded": 0,
4627+
"defaultValue": "",
4628+
"reportable": 1,
4629+
"minInterval": 1,
4630+
"maxInterval": 65534,
4631+
"reportableChange": 0
4632+
},
44574633
{
44584634
"name": "FeatureMap",
44594635
"code": 65532,
@@ -6142,4 +6318,4 @@
61426318
}
61436319
],
61446320
"log": []
6145-
}
6321+
}

zzz_generated/chef-rootnode_fan_7N2TobIlOX/zap-generated/access.h

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)