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 CmdWriteProtectedConfig.cpp Source File

CmdWriteProtectedConfig.cpp

00001 #include "CmdWriteProtectedConfig.h"
00002 
00003 CmdWriteProtectedConfig::CmdWriteProtectedConfig() :
00004     Command("Write Protected Config", "AT&WP", "Write protected config to flash (DeviceId and Frequency Band)", "NONE")
00005 {
00006 }
00007 
00008 uint32_t CmdWriteProtectedConfig::action(std::vector<std::string> args)
00009 {
00010     if (!CommandTerminal::Dot()->saveProtectedConfig()) {
00011       CommandTerminal::setErrorMessage("Failed to save to flash");
00012       return 1;
00013     }
00014 
00015     return 0;
00016 }