Better align naming in General Diagnostics cluster XML with the spec. (#24292)
* Align naming in General Diagnostics cluster XML with the spec better.
* Update ZAP files with the new attribute name and type.
* Regenerate generated files.
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
index 38d0ae6..f08b128 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
@@ -633,7 +633,7 @@
}
server cluster GeneralDiagnostics = 51 {
- enum BootReasonType : ENUM8 {
+ enum BootReasonEnum : ENUM8 {
kUnspecified = 0;
kPowerOnReboot = 1;
kBrownOutReset = 2;
@@ -643,7 +643,7 @@
kSoftwareReset = 6;
}
- enum HardwareFaultType : ENUM8 {
+ enum HardwareFault : ENUM8 {
kUnspecified = 0;
kRadio = 1;
kSensor = 2;
@@ -672,7 +672,7 @@
kConnectionFailed = 3;
}
- enum RadioFaultType : ENUM8 {
+ enum RadioFault : ENUM8 {
kUnspecified = 0;
kWiFiFault = 1;
kCellularFault = 2;
@@ -682,7 +682,7 @@
kEthernetFault = 6;
}
- struct NetworkInterfaceType {
+ struct NetworkInterface {
char_string<32> name = 0;
boolean isOperational = 1;
nullable boolean offPremiseServicesReachableIPv4 = 2;
@@ -694,13 +694,13 @@
}
critical event HardwareFaultChange = 0 {
- HardwareFaultType current[] = 0;
- HardwareFaultType previous[] = 1;
+ HardwareFault current[] = 0;
+ HardwareFault previous[] = 1;
}
critical event RadioFaultChange = 1 {
- RadioFaultType current[] = 0;
- RadioFaultType previous[] = 1;
+ RadioFault current[] = 0;
+ RadioFault previous[] = 1;
}
critical event NetworkFaultChange = 2 {
@@ -709,17 +709,17 @@
}
critical event BootReason = 3 {
- BootReasonType bootReason = 0;
+ BootReasonEnum bootReason = 0;
}
- readonly attribute NetworkInterfaceType networkInterfaces[] = 0;
+ readonly attribute NetworkInterface networkInterfaces[] = 0;
readonly attribute int16u rebootCount = 1;
readonly attribute int64u upTime = 2;
readonly attribute int32u totalOperationalHours = 3;
- readonly attribute enum8 bootReasons = 4;
- readonly attribute ENUM8 activeHardwareFaults[] = 5;
- readonly attribute ENUM8 activeRadioFaults[] = 6;
- readonly attribute ENUM8 activeNetworkFaults[] = 7;
+ readonly attribute BootReasonEnum bootReason = 4;
+ readonly attribute HardwareFault activeHardwareFaults[] = 5;
+ readonly attribute RadioFault activeRadioFaults[] = 6;
+ readonly attribute NetworkFaultType activeNetworkFaults[] = 7;
readonly attribute boolean testEventTriggersEnabled = 8;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
@@ -1200,7 +1200,7 @@
callback attribute rebootCount;
callback attribute upTime;
callback attribute totalOperationalHours;
- callback attribute bootReasons;
+ callback attribute bootReason;
callback attribute activeHardwareFaults;
callback attribute activeRadioFaults;
callback attribute activeNetworkFaults;