[message] extend buffer info provided by otMessageGetBufferInfo() (#2249)

* Include application CoAP messages and buffers
* Include cached messages and buffers
* Set unused buffer info fields to zero
This commit is contained in:
Giedrius
2017-10-10 09:53:03 +03:00
committed by Jonathan Hui
parent 9a0b838e5b
commit e190edf8a0
3 changed files with 20 additions and 0 deletions
+2
View File
@@ -441,6 +441,8 @@ void Interpreter::ProcessBufferInfo(int argc, char *argv[])
mServer->OutputFormat("arp: %d %d\r\n", bufferInfo.mArpMessages, bufferInfo.mArpBuffers);
mServer->OutputFormat("coap: %d %d\r\n", bufferInfo.mCoapMessages, bufferInfo.mCoapBuffers);
mServer->OutputFormat("coap secure: %d %d\r\n", bufferInfo.mCoapSecureMessages, bufferInfo.mCoapSecureBuffers);
mServer->OutputFormat("application coap: %d %d\r\n", bufferInfo.mApplicationCoapMessages,
bufferInfo.mApplicationCoapBuffers);
AppendResult(OT_ERROR_NONE);
}