AT Command Set mDot firmware with updated libmDot, to fix endian problem with joining LoRaWAN network
Dependencies: MTS-Serial libmDot mbed-rtos mbed-src
Fork of mDot_AT_firmware by
CommandTerminal/CmdSaveConfig.cpp
- Committer:
- ruairisdad
- Date:
- 2015-08-07
- Revision:
- 3:321cf5e5b89b
- Parent:
- 1:e52ae6584f1c
File content as of revision 3:321cf5e5b89b:
#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;
}
