[cli] add csl info in single child info (#8606)

There's a use case to check the CSL state of one certain child from
the parent. For now this can only be done by showing the full child
table. This commit adds the CSL state in the display of single child
info (cli command `child <id>`).
This commit is contained in:
Li Cao
2023-01-10 15:10:01 -08:00
committed by GitHub
parent a32d1c0b64
commit f02b8cd985
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -693,6 +693,7 @@ Child ID: 1
Rloc: 9c01
Ext Addr: e2b3540590b0fd87
Mode: rn
CSL Synchronized: 1
Net Data: 184
Timeout: 100
Age: 0
+2
View File
@@ -2151,6 +2151,7 @@ template <> otError Interpreter::Process<Cmd("child")>(Arg aArgs[])
* Rloc: 9c01
* Ext Addr: e2b3540590b0fd87
* Mode: rn
* CSL Synchronized: 1
* Net Data: 184
* Timeout: 100
* Age: 0
@@ -2170,6 +2171,7 @@ template <> otError Interpreter::Process<Cmd("child")>(Arg aArgs[])
linkMode.mDeviceType = childInfo.mFullThreadDevice;
linkMode.mNetworkData = childInfo.mFullThreadDevice;
OutputLine("Mode: %s", LinkModeToString(linkMode, linkModeString));
OutputLine("CSL Synchronized: %d ", childInfo.mIsCslSynced);
OutputLine("Net Data: %u", childInfo.mNetworkDataVersion);
OutputLine("Timeout: %lu", ToUlong(childInfo.mTimeout));
OutputLine("Age: %lu", ToUlong(childInfo.mAge));