Skip to content

Commit

Permalink
[ICD] Add OperatingMode attribute to the LIT-ICD-app (#31997)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored and pull[bot] committed Mar 5, 2024
1 parent 390dba5 commit 8098965
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1764,6 +1764,7 @@ endpoint 0 {
callback attribute clientsSupportedPerFabric;
ram attribute userActiveModeTriggerHint default = 0x110D;
ram attribute userActiveModeTriggerInstruction default = "Restart the application";
ram attribute operatingMode default = 0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
Expand Down
24 changes: 20 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 @@ -1874,10 +1874,10 @@
"side": "server",
"type": "bitmap32",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -1890,10 +1890,10 @@
"side": "server",
"type": "int16u",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "2",
"defaultValue": null,
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -3519,6 +3519,22 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "OperatingMode",
"code": 8,
"mfgCode": null,
"side": "server",
"type": "OperatingModeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "GeneratedCommandList",
"code": 65528,
Expand Down
12 changes: 12 additions & 0 deletions src/app/tests/suites/TestIcdManagementCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,25 @@ tests:
response:
value: beforeRebootICDCounter + 101

- label: "Verify the ICD is operating as a LIT ICD"
command: "readAttribute"
attribute: OperatingMode
response:
value: 1

- label: "Unregister Client Registered During Commissioning"
command: "UnregisterClient"
arguments:
values:
- name: "CheckInNodeID"
value: commissionerNodeId

- label: "Verify the ICD is operating as a SIT ICD"
command: "readAttribute"
attribute: OperatingMode
response:
value: 0

- label: "Read Feature Map"
command: "readAttribute"
attribute: "FeatureMap"
Expand Down

0 comments on commit 8098965

Please sign in to comment.