Skip to content

Commit f788911

Browse files
authored
feat(openthread): Add RLOC16 in otPrintNetworkInformation() (#11480)
* feat(openthread): Add RLOC16 in otPrintNetworkInformation()
1 parent 6d4886c commit f788911

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/OpenThread/src/OThread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ void OpenThread::otPrintNetworkInformation(Stream &output) {
335335

336336
output.printf("Role: %s", otGetStringDeviceRole());
337337
output.println();
338+
output.printf("RLOC16: 0x%04x", otThreadGetRloc16(mInstance)); // RLOC16
339+
output.println();
338340
output.printf("Network Name: %s", otThreadGetNetworkName(mInstance));
339341
output.println();
340342
output.printf("Channel: %d", otLinkGetChannel(mInstance));

0 commit comments

Comments
 (0)