few changes for RTS/CTS control

Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_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(mDot* dot) : Command(dot, "Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults")
00004 {
00005     _help = std::string(text()) + ": " + std::string(desc());
00006 }
00007 
00008 
00009 uint32_t CmdFactoryDefault::action(std::vector<std::string> args)
00010 {
00011     _dot->resetConfig();
00012     _dot->resetNetworkSession();
00013     return 0;
00014 }
00015