dev
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdSendContinuous.cpp@4:666017851052, 2015-08-18 (annotated)
- Committer:
- Mike Fiore
- Date:
- Tue Aug 18 11:21:43 2015 -0500
- Revision:
- 4:666017851052
- Child:
- 14:f9a77400b622
update mdot-firmware to 0.1.2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
4:666017851052 | 1 | #include "CmdSendContinuous.h" |
Mike Fiore |
4:666017851052 | 2 | #include "CommandTerminal.h" |
Mike Fiore |
4:666017851052 | 3 | |
Mike Fiore |
4:666017851052 | 4 | CmdSendContinuous::CmdSendContinuous(mDot* dot, mts::MTSSerial& serial) |
Mike Fiore |
4:666017851052 | 5 | : |
Mike Fiore |
4:666017851052 | 6 | Command(dot, "Send Continuous", "AT+SENDC", "Send un-modulated data continuously"), |
Mike Fiore |
4:666017851052 | 7 | _serial(serial) { |
Mike Fiore |
4:666017851052 | 8 | _help = std::string(text()) + ": " + std::string(desc()); |
Mike Fiore |
4:666017851052 | 9 | _usage = "(string:242)"; |
Mike Fiore |
4:666017851052 | 10 | } |
Mike Fiore |
4:666017851052 | 11 | |
Mike Fiore |
4:666017851052 | 12 | uint32_t CmdSendContinuous::action(std::vector<std::string> args) { |
Mike Fiore |
4:666017851052 | 13 | |
Mike Fiore |
4:666017851052 | 14 | _dot->sendContinuous(); |
Mike Fiore |
4:666017851052 | 15 | return 0; |
Mike Fiore |
4:666017851052 | 16 | } |
Mike Fiore |
4:666017851052 | 17 | |
Mike Fiore |
4:666017851052 | 18 | bool CmdSendContinuous::verify(std::vector<std::string> args) { |
Mike Fiore |
4:666017851052 | 19 | |
Mike Fiore |
4:666017851052 | 20 | return true; |
Mike Fiore |
4:666017851052 | 21 | } |