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 MultiTech

CommandTerminal/CmdTxNextMs.cpp

Committer:
pferland
Date:
2018-03-02
Revision:
18:f5d28d621bb0
Parent:
14:f9a77400b622

File content as of revision 18:f5d28d621bb0:

#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;
}