Support meshcop datasets and propagation. (#330)

This commit is contained in:
Jonathan Hui
2016-08-04 09:46:48 -07:00
committed by GitHub
parent b209ac63aa
commit 2a493e7ec0
27 changed files with 2702 additions and 95 deletions
+9
View File
@@ -39,6 +39,7 @@
#include <openthread-config.h>
#include "cli.hpp"
#include "cli_dataset.hpp"
#include <common/encoding.hpp>
#include <platform/uart.h>
@@ -56,6 +57,7 @@ const struct Command Interpreter::sCommands[] =
{ "childtimeout", &ProcessChildTimeout },
{ "contextreusedelay", &ProcessContextIdReuseDelay },
{ "counter", &ProcessCounters },
{ "dataset", &ProcessDataset },
{ "discover", &ProcessDiscover },
{ "eidcache", &ProcessEidCache },
{ "extaddr", &ProcessExtAddress },
@@ -354,6 +356,13 @@ void Interpreter::ProcessCounters(int argc, char *argv[])
}
}
void Interpreter::ProcessDataset(int argc, char *argv[])
{
ThreadError error;
error = Dataset::Process(argc, argv, *sServer);
AppendResult(error);
}
void Interpreter::ProcessDiscover(int argc, char *argv[])
{
ThreadError error = kThreadError_None;