mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
Add separate counters for unicast and broadcast (#994)
* Added tx counts for unicast vs broadcast packets * Added counters for Rx broadcast vs unicast packets
This commit is contained in:
@@ -517,6 +517,8 @@ void Interpreter::ProcessCounters(int argc, char *argv[])
|
||||
{
|
||||
const otMacCounters *counters = otGetMacCounters(mInstance);
|
||||
sServer->OutputFormat("TxTotal: %d\r\n", counters->mTxTotal);
|
||||
sServer->OutputFormat(" TxUnicast: %d\r\n", counters->mTxUnicast);
|
||||
sServer->OutputFormat(" TxBroadcast: %d\r\n", counters->mTxBroadcast);
|
||||
sServer->OutputFormat(" TxAckRequested: %d\r\n", counters->mTxAckRequested);
|
||||
sServer->OutputFormat(" TxAcked: %d\r\n", counters->mTxAcked);
|
||||
sServer->OutputFormat(" TxNoAckRequested: %d\r\n", counters->mTxNoAckRequested);
|
||||
@@ -528,6 +530,8 @@ void Interpreter::ProcessCounters(int argc, char *argv[])
|
||||
sServer->OutputFormat(" TxRetry: %d\r\n", counters->mTxRetry);
|
||||
sServer->OutputFormat(" TxErrCca: %d\r\n", counters->mTxErrCca);
|
||||
sServer->OutputFormat("RxTotal: %d\r\n", counters->mRxTotal);
|
||||
sServer->OutputFormat(" RxUnicast: %d\r\n", counters->mRxUnicast);
|
||||
sServer->OutputFormat(" RxBroadcast: %d\r\n", counters->mRxBroadcast);
|
||||
sServer->OutputFormat(" RxData: %d\r\n", counters->mRxData);
|
||||
sServer->OutputFormat(" RxDataPoll: %d\r\n", counters->mRxDataPoll);
|
||||
sServer->OutputFormat(" RxBeacon: %d\r\n", counters->mRxBeacon);
|
||||
|
||||
Reference in New Issue
Block a user