MultiTech / Mbed OS mDot_AT_firmware_CUSTOM

Dependencies:   libmDot-Custom MTS-Serial

Fork of mDot_AT_firmware_CUSTOM by Jason Reiss

To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15

#define CHANNEL_PLAN CP_AS923

See Supported Channel Plans

Revision:
14:e80ace5a6834
Parent:
1:e52ae6584f1c
diff -r 27f308724cc4 -r e80ace5a6834 CommandTerminal/CmdDummy.cpp
--- a/CommandTerminal/CmdDummy.cpp	Mon Aug 29 14:06:16 2016 +0000
+++ b/CommandTerminal/CmdDummy.cpp	Mon Aug 29 10:05:41 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;
+}