mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 02:19:52 +00:00
[cli] output service ID when listing services in network data (#10408)
This commit is contained in:
@@ -374,6 +374,7 @@ Service entries are listed under `Services` header:
|
||||
- Flags
|
||||
- s: Stable flag
|
||||
- RLOC16 of devices which added the service entry
|
||||
- Service ID
|
||||
|
||||
6LoWPAN Context IDs are listed under `Contexts` header:
|
||||
|
||||
@@ -400,7 +401,7 @@ Routes:
|
||||
fd00:1234:0:0::/64 s med a000
|
||||
fd00:4567:0:0::/64 s med 8000
|
||||
Services:
|
||||
44970 5d fddead00beef00007bad0069ce45948504d2 s a000
|
||||
44970 5d fddead00beef00007bad0069ce45948504d2 s a000 0
|
||||
Contexts:
|
||||
fd00:dead:beef:cafe::/64 1 c
|
||||
Commissioning:
|
||||
@@ -417,7 +418,7 @@ fd00:dead:beef:cafe::/64 paros med a000
|
||||
Routes:
|
||||
fd00:1234:0:0::/64 s med a000
|
||||
Services:
|
||||
44970 5d fddead00beef00007bad0069ce45948504d2 s a000
|
||||
44970 5d fddead00beef00007bad0069ce45948504d2 s a000 0
|
||||
Done
|
||||
```
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ void NetworkData::OutputService(const otServiceConfig &aConfig)
|
||||
OutputFormat(" s");
|
||||
}
|
||||
|
||||
OutputLine(" %04x", aConfig.mServerConfig.mRloc16);
|
||||
OutputLine(" %04x %u", aConfig.mServerConfig.mRloc16, aConfig.mServiceId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -713,8 +713,8 @@ exit:
|
||||
* Routes:
|
||||
* fd49:7770:7fc5:0::/64 s med 4000
|
||||
* Services:
|
||||
* 44970 5d c000 s 4000
|
||||
* 44970 01 9a04b000000e10 s 4000
|
||||
* 44970 5d c000 s 4000 0
|
||||
* 44970 01 9a04b000000e10 s 4000 1
|
||||
* Contexts:
|
||||
* fd00:dead:beef:cafe::/64 1 c
|
||||
* Commissioning:
|
||||
@@ -771,6 +771,7 @@ exit:
|
||||
* * Flags
|
||||
* * s: Stable flag
|
||||
* * RLOC16 of devices which added the service entry
|
||||
* * Service ID
|
||||
* @par
|
||||
* 6LoWPAN Context IDs are listed under `Contexts` header:
|
||||
* * The prefix
|
||||
|
||||
Reference in New Issue
Block a user