firm newest
Dependencies: MTS-Serial libmDot-dev-mbed5-deprecated
Diff: CommandTerminal/CmdFactoryDefault.cpp
- Revision:
- 0:3c869a8cb8f8
diff -r 000000000000 -r 3c869a8cb8f8 CommandTerminal/CmdFactoryDefault.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CommandTerminal/CmdFactoryDefault.cpp Thu Oct 18 04:18:48 2018 +0000 @@ -0,0 +1,14 @@ +#include "CmdFactoryDefault.h" + +CmdFactoryDefault::CmdFactoryDefault() : Command("Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults", "NONE") +{ +} + + +uint32_t CmdFactoryDefault::action(std::vector<std::string> args) +{ + CommandTerminal::Dot()->resetConfig(); + CommandTerminal::Dot()->resetNetworkSession(); + return 0; +} +