![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
AT terminal for the mDot using the USB debug port instead of the serial port.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdTxNextMs.cpp
- Committer:
- Mike Fiore
- Date:
- 2015-07-10
- Revision:
- 2:e5eebd74d36d
- Parent:
- 1:e52ae6584f1c
- Child:
- 14:f9a77400b622
File content as of revision 2:e5eebd74d36d:
#include "CmdTxNextMs.h" CmdTxNextMs::CmdTxNextMs(mDot* dot, mts::MTSSerial& serial) : Command(dot, "Tx Next", "AT+TXN", "Get time in ms until next free channel"), _serial(serial) { _help = std::string(text()) + ": " + std::string(desc()); _usage = "(0-2793000)"; _queryable = true; } uint32_t CmdTxNextMs::action(std::vector<std::string> args) { if (_dot->getVerbose()) _serial.writef("Next Tx in: "); _serial.writef("%lu\r\n", _dot->getNextTxMs()); return 0; } bool CmdTxNextMs::verify(std::vector<std::string> args) { if (args.size() > 1) return false; return true; }