mDot AT-Firmware for testing
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
Diff: CommandTerminal/CmdSaveSession.cpp
- Revision:
- 14:f9a77400b622
- Parent:
- 9:ff62b20f7000
--- a/CommandTerminal/CmdSaveSession.cpp Fri Nov 04 19:10:24 2016 +0000 +++ b/CommandTerminal/CmdSaveSession.cpp Fri Nov 04 14:25:43 2016 -0500 @@ -1,14 +1,13 @@ #include "CmdSaveSession.h" -CmdSaveSession::CmdSaveSession(mDot* dot, mts::MTSSerial& serial) : - Command(dot, "Save Network Session", "AT+SS", "Save network session info to flash"), _serial(serial) +CmdSaveSession::CmdSaveSession() : + Command("Save Network Session", "AT+SS", "Save network session info to flash", "NONE") { - _help = std::string(text()) + ": " + std::string(desc()); } uint32_t CmdSaveSession::action(std::vector<std::string> args) { - _dot->saveNetworkSession(); + CommandTerminal::Dot()->saveNetworkSession(); return 0; }