Skip to content

Commit

Permalink
[ICD] Remove user active mode trigger attributes for the external list (
Browse files Browse the repository at this point in the history
#30980)

* remove user active trigger attributes for the external list

* Add tests to validate attributes

* generated files

* Fix attribute storage options

* generated files

* update .matter
  • Loading branch information
mkardous-silabs authored and pull[bot] committed Apr 20, 2024
1 parent 7d73ceb commit dda1327
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1740,8 +1740,8 @@ endpoint 0 {
callback attribute registeredClients;
callback attribute ICDCounter;
callback attribute clientsSupportedPerFabric;
callback attribute userActiveModeTriggerHint;
callback attribute userActiveModeTriggerInstruction;
ram attribute userActiveModeTriggerHint default = 0x110D;
ram attribute userActiveModeTriggerInstruction default = "Restart the application";
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand Down
8 changes: 4 additions & 4 deletions examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3494,10 +3494,10 @@
"side": "server",
"type": "UserActiveModeTriggerBitmap",
"included": 1,
"storageOption": "External",
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"defaultValue": "0x110D",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3510,10 +3510,10 @@
"side": "server",
"type": "char_string",
"included": 1,
"storageOption": "External",
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"defaultValue": "Restart the application",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
17 changes: 17 additions & 0 deletions src/app/tests/suites/TestIcdManagementCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ tests:
minValue: 0x0
maxValue: 0xFFFFFFFF

- label: "Read UserActiveModeTriggerHint"
command: "readAttribute"
attribute: "UserActiveModeTriggerHint"
response:
constraints:
type: bitmap32
value: 0x110D

- label: "Read UserActiveModeTriggerInstruction"
command: "readAttribute"
attribute: "UserActiveModeTriggerInstruction"
response:
constraints:
type: char_string
minLength: 1
maxLength: 128

- label: "Read ClientsSupportedPerFabric"
command: "readAttribute"
attribute: "ClientsSupportedPerFabric"
Expand Down
4 changes: 1 addition & 3 deletions src/app/zap-templates/zcl/zcl-with-test-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@
"ActiveModeThreshold",
"RegisteredClients",
"ICDCounter",
"ClientsSupportedPerFabric",
"UserActiveModeTriggerHint",
"UserActiveModeTriggerInstruction"
"ClientsSupportedPerFabric"
],
"Operational Credentials": [
"SupportedFabrics",
Expand Down
4 changes: 1 addition & 3 deletions src/app/zap-templates/zcl/zcl.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@
"ActiveModeThreshold",
"RegisteredClients",
"ICDCounter",
"ClientsSupportedPerFabric",
"UserActiveModeTriggerHint",
"UserActiveModeTriggerInstruction"
"ClientsSupportedPerFabric"
],
"Operational Credentials": [
"SupportedFabrics",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dda1327

Please sign in to comment.