Skip to content

Commit

Permalink
Change SoftwareDiagnostics Cluster to match the spec (#30052)
Browse files Browse the repository at this point in the history
* Diagnostics to spec: casing and access for resetWaterMarks

* Fix typo in access logic

* Zap regen, make it compile

* Undo unwanted change

* Minor change to kick CI

* Fix Darwin availability annotations too.

* Ran zap_convert_all.py

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 20, 2024
1 parent 6aad3ef commit 090ecbd
Show file tree
Hide file tree
Showing 135 changed files with 1,836 additions and 10,809 deletions.
12,044 changes: 1,493 additions & 10,551 deletions examples/air-purifier-app/air-purifier-common/air-purifier-app.zap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -730,7 +730,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3243,7 +3243,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -5845,5 +5845,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -1703,7 +1703,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
}
],
"package": [
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"version": "chip-v1"
},
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/zcl/zcl-with-test-extensions.json",
"type": "zcl-properties",
"category": "matter",
"version": 1,
"description": "Matter SDK ZCL data with some extensions"
},
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"version": "chip-v1"
}
],
"endpointTypes": [
Expand Down Expand Up @@ -5074,7 +5074,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3254,7 +3254,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -8655,7 +8655,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "char_string",
"type": "long_char_string",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
Expand Down
2 changes: 1 addition & 1 deletion examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down
5 changes: 3 additions & 2 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3740,7 +3740,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -5705,5 +5705,6 @@
"endpointId": 2,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -912,7 +912,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -4779,5 +4779,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -7828,5 +7828,6 @@
"endpointId": 5,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -822,7 +822,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -6062,5 +6062,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -827,7 +827,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -1004,7 +1004,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -3902,5 +3902,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -910,7 +910,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down
5 changes: 3 additions & 2 deletions examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -3084,5 +3084,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ server cluster GeneralDiagnostics = 51 {
/** The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems. */
server cluster SoftwareDiagnostics = 52 {
bitmap Feature : bitmap32 {
kWaterMarks = 0x1;
kWatermarks = 0x1;
}

struct ThreadMetricsStruct {
Expand Down Expand Up @@ -1060,7 +1060,7 @@ server cluster SoftwareDiagnostics = 52 {
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
command access(invoke: manage) ResetWatermarks(): DefaultSuccess = 0;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
Expand Down
5 changes: 3 additions & 2 deletions examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -3516,5 +3516,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
5 changes: 3 additions & 2 deletions examples/chef/devices/rootnode_dishwasher_cc105034fe.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int16u",
"type": "vendor_id",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -3517,5 +3517,6 @@
"endpointId": 1,
"networkId": 0
}
]
],
"log": []
}
Loading

0 comments on commit 090ecbd

Please sign in to comment.