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: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdTxNextMs.cpp
- Committer:
- Mike Fiore
- Date:
- 2016-11-04
- Revision:
- 14:f9a77400b622
- Parent:
- 2:e5eebd74d36d
File content as of revision 14:f9a77400b622:
#include "CmdTxNextMs.h"
CmdTxNextMs::CmdTxNextMs()
: Command("Tx Next", "AT+TXN", "Get time in ms until next free channel", "(0-2793000)") {
_queryable = true;
}
uint32_t CmdTxNextMs::action(std::vector<std::string> args) {
CommandTerminal::Serial()->writef("%lu\r\n", CommandTerminal::Dot()->getNextTxMs());
return 0;
}
bool CmdTxNextMs::verify(std::vector<std::string> args) {
if (args.size() > 1)
return false;
return true;
}
