Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MTS-Serial libxDot-dev-mbed5-deprecated
Fork of Dot-AT-Firmware by
Diff: CommandTerminal/CmdSaveSession.cpp
- Revision:
- 14:f9a77400b622
- Parent:
- 9:ff62b20f7000
diff -r b0f5ae12dc05 -r f9a77400b622 CommandTerminal/CmdSaveSession.cpp
--- 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;
 }
 
    