MicroLabo / Mbed OS mbed-Dot-AT-Firmware

Dependencies:   MTS-Serial libmDot-mbed5

Fork of Dot-AT-Firmware by MultiTech

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdFactoryDefault.cpp Source File

CmdFactoryDefault.cpp

00001 #include "CmdFactoryDefault.h"
00002 
00003 CmdFactoryDefault::CmdFactoryDefault() : Command("Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults", "NONE")
00004 {
00005 }
00006 
00007 
00008 uint32_t CmdFactoryDefault::action(std::vector<std::string> args)
00009 {
00010     CommandTerminal::Dot()->resetConfig();
00011     CommandTerminal::Dot()->resetNetworkSession();
00012     return 0;
00013 }
00014