MultiTech / Mbed OS mDot_AT_firmware_CUSTOM

Dependencies:   libmDot-Custom MTS-Serial

Fork of mDot_AT_firmware_CUSTOM by Jason Reiss

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdSaveConfig.cpp Source File

CmdSaveConfig.cpp

00001 #include "CmdSaveConfig.h"
00002 
00003 CmdSaveConfig::CmdSaveConfig() : Command("Save Configuration", "AT&W", "Save configuration to flash memory", "NONE")
00004 {
00005 }
00006 
00007 
00008 uint32_t CmdSaveConfig::action(std::vector<std::string> args)
00009 {
00010     if (!CommandTerminal::Dot()->saveConfig()) {
00011       CommandTerminal::setErrorMessage("Failed to save to flash");
00012       return 1;
00013     }
00014     
00015     return 0;
00016 }