mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
Don't return parent info if the device is not a child (#1868)
* Fix the issue that the previous parent information could be retrieved even after the device is not a child * Print more parent information in CLI
This commit is contained in:
@@ -1534,6 +1534,9 @@ void Interpreter::ProcessParent(int argc, char *argv[])
|
||||
mServer->OutputFormat("\r\n");
|
||||
|
||||
mServer->OutputFormat("Rloc: %x\r\n", parentInfo.mRloc16);
|
||||
mServer->OutputFormat("Link Quality In: %d\r\n", parentInfo.mLinkQualityIn);
|
||||
mServer->OutputFormat("Link Quality Out: %d\r\n", parentInfo.mLinkQualityOut);
|
||||
mServer->OutputFormat("Age: %d\r\n", parentInfo.mAge);
|
||||
|
||||
exit:
|
||||
(void)argc;
|
||||
|
||||
Reference in New Issue
Block a user