Jason Reiss / Mbed OS Dot-AT-Firmware-XDOT

Dependencies:   MTS-Serial libxDot-mbed5

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdTxNextMs.cpp Source File

CmdTxNextMs.cpp

00001 #include "CmdTxNextMs.h"
00002 
00003 CmdTxNextMs::CmdTxNextMs()
00004 : Command("Tx Next", "AT+TXN", "Get time in ms until next free channel", "(0-2793000)") {
00005     _queryable = true;
00006 }
00007 
00008 uint32_t CmdTxNextMs::action(std::vector<std::string> args) {
00009 
00010     CommandTerminal::Serial()->writef("%lu\r\n", CommandTerminal::Dot()->getNextTxMs());
00011     return 0;
00012 }
00013 
00014 bool CmdTxNextMs::verify(std::vector<std::string> args) {
00015 
00016     if (args.size() > 1)
00017         return false;
00018 
00019     return true;
00020 }