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: libmDot-Custom MTS-Serial
Fork of mDot_AT_firmware_CUSTOM by
To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15
#define CHANNEL_PLAN CP_AS923
Diff: CommandTerminal/CmdDummy.cpp
- 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;
+}
