few changes for RTS/CTS control
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_AT_firmware by
CommandTerminal/CmdDataPending.cpp
- Committer:
- serg838
- Date:
- 2016-10-25
- Revision:
- 11:77b7911263da
- Parent:
- 1:e52ae6584f1c
File content as of revision 11:77b7911263da:
#include "CmdDataPending.h" CmdDataPending::CmdDataPending(mDot* dot, mts::MTSSerial& serial) : Command(dot, "Data Pending", "AT+DP", "Indicator of data in queue on server"), _serial(serial) { _help = std::string(text()) + ": " + std::string(desc()); _usage = "(0,1)"; _queryable = true; } uint32_t CmdDataPending::action(std::vector<std::string> args) { if (_dot->getVerbose()) _serial.writef("Data Pending: "); _serial.writef("%d\r\n", _dot->getDataPending()); return 0; }