[ICD] Add OperatingMode attribute to the LIT-ICD-app (#31997)
diff --git a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
index 9089068..db80008 100644
--- a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
+++ b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
@@ -1764,6 +1764,7 @@
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;
diff --git a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap
index d288636..357fd2e 100644
--- a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap
+++ b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap
@@ -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,
@@ -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,
@@ -3520,6 +3520,22 @@
"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,
"mfgCode": null,
diff --git a/src/app/tests/suites/TestIcdManagementCluster.yaml b/src/app/tests/suites/TestIcdManagementCluster.yaml
index 4a83c07..d9d275b 100644
--- a/src/app/tests/suites/TestIcdManagementCluster.yaml
+++ b/src/app/tests/suites/TestIcdManagementCluster.yaml
@@ -89,6 +89,12 @@
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:
@@ -96,6 +102,12 @@
- 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"