From 563206451adc54c48034c04d09d41c928d5065e3 Mon Sep 17 00:00:00 2001 From: Alex Tsitsiura Date: Sat, 25 Feb 2023 01:01:31 +0200 Subject: [PATCH] [Telink] Add missed client side for THREAD_NETWORK_DIAGNOSTICS_CLUSTER (#25304) * [Telink] Add missed client side for THREAD_NETWORK_DIAGNOSTICS_CLUSTER * [Telink] Add ResetCounts --- .../thermostat-common/thermostat.matter | 2 ++ .../thermostat-common/thermostat.zap | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index bc9cf36ab4e6bb..314607a604a6f6 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -1161,6 +1161,8 @@ server cluster ThreadNetworkDiagnostics = 53 { readonly attribute attrib_id attributeList[] = 65531; readonly attribute bitmap32 featureMap = 65532; readonly attribute int16u clusterRevision = 65533; + + command ResetCounts(): DefaultSuccess = 0; } server cluster WiFiNetworkDiagnostics = 54 { diff --git a/examples/thermostat/thermostat-common/thermostat.zap b/examples/thermostat/thermostat-common/thermostat.zap index 22eae794f8cde7..692c3fb00cfc44 100644 --- a/examples/thermostat/thermostat-common/thermostat.zap +++ b/examples/thermostat/thermostat-common/thermostat.zap @@ -3025,6 +3025,42 @@ } ] }, + { + "name": "Thread Network Diagnostics", + "code": 53, + "mfgCode": null, + "define": "THREAD_NETWORK_DIAGNOSTICS_CLUSTER", + "side": "client", + "enabled": 0, + "commands": [ + { + "name": "ResetCounts", + "code": 0, + "mfgCode": null, + "source": "client", + "incoming": 1, + "outgoing": 0 + } + ], + "attributes": [ + { + "name": "ClusterRevision", + "code": 65533, + "mfgCode": null, + "side": "client", + "type": "int16u", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "1", + "reportable": 1, + "minInterval": 0, + "maxInterval": 65344, + "reportableChange": 0 + } + ] + }, { "name": "Thread Network Diagnostics", "code": 53,