From f02b8cd985a4323ee212b2b16c5263887025b170 Mon Sep 17 00:00:00 2001 From: Li Cao Date: Wed, 11 Jan 2023 07:10:01 +0800 Subject: [PATCH] [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 `). --- src/cli/README.md | 1 + src/cli/cli.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/cli/README.md b/src/cli/README.md index 4287798ed..6aa43399e 100644 --- a/src/cli/README.md +++ b/src/cli/README.md @@ -693,6 +693,7 @@ Child ID: 1 Rloc: 9c01 Ext Addr: e2b3540590b0fd87 Mode: rn +CSL Synchronized: 1 Net Data: 184 Timeout: 100 Age: 0 diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index 218e86f9b..ce8114f39 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -2151,6 +2151,7 @@ template <> otError Interpreter::Process(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(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));