This mDot firmware will allow USB to directly utilize AT command without the need the use of RS232 DB9 port.

Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_USB_AT_firmware by Hadi Ho

CommandTerminal/CmdSaveConfig.cpp

Committer:
ahario
Date:
2016-10-19
Revision:
14:eecf7851d6ff
Parent:
1:e52ae6584f1c

File content as of revision 14:eecf7851d6ff:

#include "CmdSaveConfig.h"

CmdSaveConfig::CmdSaveConfig(mDot* dot) : Command(dot, "Save Configuration", "AT&W", "Save configuration to flash memory")
{
    _help = std::string(text()) + ": " + std::string(desc());
}


uint32_t CmdSaveConfig::action(std::vector<std::string> args)
{
    if (!_dot->saveConfig()) {
      setErrorMessage("Failed to save to flash");
      return 1;
    }
    
    return 0;
}