AT terminal for the mDot using the USB debug port instead of the serial port.

Dependencies:   MTS-Serial libmDot-mbed5

Fork of Dot-AT-Firmware by MultiTech

Revision:
14:f9a77400b622
Parent:
1:e52ae6584f1c
--- a/CommandTerminal/CmdDummy.cpp	Fri Nov 04 19:10:24 2016 +0000
+++ b/CommandTerminal/CmdDummy.cpp	Fri Nov 04 14:25:43 2016 -0500
@@ -1,13 +1,20 @@
 #include "CmdDummy.h"
 
-CmdDummy::CmdDummy(mDot* dot, const char* name, const char* txt, const char* dsc) : Command(dot, name, txt, dsc)
-{
-    _help = std::string(text()) + ": " + std::string(desc());
+CmdDummy::CmdDummy(const char* name, const char* txt, const char* dsc, const char* usage) :
+    Command(name, txt, dsc, usage) {
+
 }
 
 
-uint32_t CmdDummy::action(std::vector<std::string> args)
-{
+uint32_t CmdDummy::action(std::vector<std::string> args) {
     return 0;
 }
 
+bool CmdDummy::verify(std::vector<std::string> args) {
+    if (args.size() > 1) {
+        CommandTerminal::setErrorMessage("Invalid Arguments");
+        return false;
+    }
+
+    return true;
+}