[auto-start] remove auto-start feature (#3920)

This commit is contained in:
Jonathan Hui
2019-06-14 12:40:30 -07:00
committed by GitHub
parent b4c56c447e
commit 6dfd716da1
9 changed files with 6 additions and 178 deletions
-32
View File
@@ -100,7 +100,6 @@ namespace Cli {
const struct Command Interpreter::sCommands[] = {
{"help", &Interpreter::ProcessHelp},
{"autostart", &Interpreter::ProcessAutoStart},
{"bufferinfo", &Interpreter::ProcessBufferInfo},
{"channel", &Interpreter::ProcessChannel},
#if OPENTHREAD_FTD
@@ -454,37 +453,6 @@ void Interpreter::ProcessHelp(int argc, char *argv[])
}
}
void Interpreter::ProcessAutoStart(int argc, char *argv[])
{
otError error = OT_ERROR_NONE;
if (argc == 0)
{
if (otThreadGetAutoStart(mInstance))
{
mServer->OutputFormat("Enabled\r\n");
}
else
{
mServer->OutputFormat("Disabled\r\n");
}
}
else if (strcmp(argv[0], "enable") == 0)
{
error = otThreadSetAutoStart(mInstance, true);
}
else if (strcmp(argv[0], "disable") == 0)
{
error = otThreadSetAutoStart(mInstance, false);
}
else
{
error = OT_ERROR_INVALID_ARGS;
}
AppendResult(error);
}
void Interpreter::ProcessBufferInfo(int argc, char *argv[])
{
OT_UNUSED_VARIABLE(argc);