[CoAP] Adding CLI commands (#1539)

* [CoAP] Adding CLI commands

Adds CLI commands for a simple CoAP client and server with one resource
This commit is contained in:
Michael Morscher
2017-04-11 09:02:42 -07:00
committed by Jonathan Hui
parent 6c44b0759a
commit 6a520dd63c
7 changed files with 568 additions and 0 deletions
+7
View File
@@ -49,6 +49,10 @@
#include <cli/cli_server.hpp>
#include <common/code_utils.hpp>
#if OPENTHREAD_ENABLE_APPLICATION_COAP
#include <coap/coap_header.hpp>
#endif
#ifndef OTDLL
#include <net/icmp6.hpp>
#include <common/timer.hpp>
@@ -162,6 +166,9 @@ private:
void ProcessChild(int argc, char *argv[]);
void ProcessChildTimeout(int argc, char *argv[]);
void ProcessChildMax(int argc, char *argv[]);
#if OPENTHREAD_ENABLE_APPLICATION_COAP
void ProcessCoap(int argc, char *argv[]);
#endif //OPENTHREAD_ENABLE_APPLICATION_COAP
#if OPENTHREAD_ENABLE_COMMISSIONER
void ProcessCommissioner(int argc, char *argv[]);
#endif // OPENTHREAD_ENABLE_COMMISSIONER