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 mbed-rtos mbed
Fork of mDot_USB_AT_firmware by
CmdTxNextMs.cpp
00001 #include "CmdTxNextMs.h" 00002 00003 CmdTxNextMs::CmdTxNextMs(mDot* dot, mts::MTSSerial& serial) 00004 : Command(dot, "Tx Next", "AT+TXN", "Get time in ms until next free channel"), _serial(serial) { 00005 _help = std::string(text()) + ": " + std::string(desc()); 00006 _usage = "(0-2793000)"; 00007 _queryable = true; 00008 } 00009 00010 uint32_t CmdTxNextMs::action(std::vector<std::string> args) { 00011 00012 if (_dot->getVerbose()) 00013 _serial.writef("Next Tx in: "); 00014 00015 _serial.writef("%lu\r\n", _dot->getNextTxMs()); 00016 00017 return 0; 00018 } 00019 00020 bool CmdTxNextMs::verify(std::vector<std::string> args) { 00021 00022 if (args.size() > 1) 00023 return false; 00024 00025 return true; 00026 }
Generated on Tue Jul 12 2022 20:37:29 by
1.7.2
