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
CommandTerminal/CmdDummy.cpp@14:e80ace5a6834, 2016-08-29 (annotated)
- Committer:
- Jason Reiss 
- Date:
- Mon Aug 29 10:05:41 2016 -0500
- Revision:
- 14:e80ace5a6834
- Parent:
- 1:e52ae6584f1c
Update commands
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| Mike Fiore | 1:e52ae6584f1c | 1 | #include "CmdDummy.h" | 
| Mike Fiore | 1:e52ae6584f1c | 2 | |
| Jason Reiss | 14:e80ace5a6834 | 3 | CmdDummy::CmdDummy(const char* name, const char* txt, const char* dsc, const char* usage) : | 
| Jason Reiss | 14:e80ace5a6834 | 4 | Command(name, txt, dsc, usage) { | 
| Jason Reiss | 14:e80ace5a6834 | 5 | |
| Mike Fiore | 1:e52ae6584f1c | 6 | } | 
| Mike Fiore | 1:e52ae6584f1c | 7 | |
| Mike Fiore | 1:e52ae6584f1c | 8 | |
| Jason Reiss | 14:e80ace5a6834 | 9 | uint32_t CmdDummy::action(std::vector<std::string> args) { | 
| Mike Fiore | 1:e52ae6584f1c | 10 | return 0; | 
| Mike Fiore | 1:e52ae6584f1c | 11 | } | 
| Mike Fiore | 1:e52ae6584f1c | 12 | |
| Jason Reiss | 14:e80ace5a6834 | 13 | bool CmdDummy::verify(std::vector<std::string> args) { | 
| Jason Reiss | 14:e80ace5a6834 | 14 | if (args.size() > 1) { | 
| Jason Reiss | 14:e80ace5a6834 | 15 | CommandTerminal::setErrorMessage("Invalid Arguments"); | 
| Jason Reiss | 14:e80ace5a6834 | 16 | return false; | 
| Jason Reiss | 14:e80ace5a6834 | 17 | } | 
| Jason Reiss | 14:e80ace5a6834 | 18 | |
| Jason Reiss | 14:e80ace5a6834 | 19 | return true; | 
| Jason Reiss | 14:e80ace5a6834 | 20 | } | 
