[TE6] Read Thread Network Diagnostics attributes from platform (#9853)
* create function to retrived thread for thread diagnostics attributes
Update getter mechanism for thread diagnostics
Add Type parameter to get the type to use for the attribute value gotten
Fix reading for all types
Fix some encoding order error and an attribute type error or change that was missed
Enable missing attributes ActiveTimestamp,PendingTimestamp, delay
* Regen all
* Add abstraction implementation to connectivityMgr mostly for examples that do not use Thread/ have ThreadStackManager
* Restyled by clang-format
* rebase & regen to fix conflicts
Fix zap commit failed rebase. Fix ESP32 build
* Rework ThreadNetworkDiagnosticAttribute to simplify the logic and directly write the tlvs. Addresses modifications/correction requests. Correct bit order for ChannelMask attribute and use correct type and len
* rebase and regen
* Fix/Remove include depenencies on <app-common/zap-generated/attribute-id.h>
Add type checking and tlv writing result with Encode method
add Test for reading writing standard attribute ClusterRevision (Test_TC-DIAGTH_1_1)
Regen for test.
* fix deleted ) in nrf test_drvier makefile
* Add brief to api entries -Fix typo -remove unneeded chip:: namespace from method parameters
* Apply suggestions from code review
Correct syntax errors in briefs
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
index 1869d71..47e4835 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
@@ -2807,6 +2807,51 @@
"reportableChange": 0
},
{
+ "name": "ActiveTimestamp",
+ "code": 56,
+ "mfgCode": null,
+ "side": "server",
+ "included": 1,
+ "storageOption": "RAM",
+ "singleton": 0,
+ "bounded": 0,
+ "defaultValue": "0x0000000000000000",
+ "reportable": 0,
+ "minInterval": 1,
+ "maxInterval": 65534,
+ "reportableChange": 0
+ },
+ {
+ "name": "PendingTimestamp",
+ "code": 57,
+ "mfgCode": null,
+ "side": "server",
+ "included": 1,
+ "storageOption": "RAM",
+ "singleton": 0,
+ "bounded": 0,
+ "defaultValue": "0x0000000000000000",
+ "reportable": 0,
+ "minInterval": 1,
+ "maxInterval": 65534,
+ "reportableChange": 0
+ },
+ {
+ "name": "delay",
+ "code": 58,
+ "mfgCode": null,
+ "side": "server",
+ "included": 1,
+ "storageOption": "RAM",
+ "singleton": 0,
+ "bounded": 0,
+ "defaultValue": "0x0000",
+ "reportable": 0,
+ "minInterval": 1,
+ "maxInterval": 65534,
+ "reportableChange": 0
+ },
+ {
"name": "SecurityPolicy",
"code": 59,
"mfgCode": null,