firm newest
Dependencies: MTS-Serial libmDot-dev-mbed5-deprecated
Diff: CommandTerminal/CmdSendContinuous.cpp
- Revision:
- 0:3c869a8cb8f8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CommandTerminal/CmdSendContinuous.cpp Thu Oct 18 04:18:48 2018 +0000 @@ -0,0 +1,19 @@ +#include "CmdSendContinuous.h" +#include "CommandTerminal.h" + +CmdSendContinuous::CmdSendContinuous() +: Command("Send Continuous", "AT+SENDC", "Send un-modulated data continuously", "(string:242)") { +} + +uint32_t CmdSendContinuous::action(std::vector<std::string> args) { + + CommandTerminal::Dot()->sendContinuous(true); + CommandTerminal::Serial()->clearEscaped(); + + return 0; +} + +bool CmdSendContinuous::verify(std::vector<std::string> args) { + + return true; +}