AT command firmware for MultiTech Dot devices.

Fork of mDot_AT_firmware by MultiTech

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 #if MTS_CMD_TERM_VERBOSE
00005     Command("Tx Next", "AT+TXN", "Get time in ms until next free channel", "(0-2793000)")
00006 #else
00007     Command("AT+TXN")
00008 #endif
00009 {
00010     _queryable = true;
00011 }
00012 
00013 uint32_t CmdTxNextMs::action(const std::vector<std::string>& args) {
00014 
00015     CommandTerminal::Serial()->writef("%lu\r\n", CommandTerminal::Dot()->getNextTxMs());
00016     return 0;
00017 }