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 libxDot-dev-mbed5-deprecated
Fork of Dot-AT-Firmware by
Diff: CommandTerminal/CmdDataPending.cpp
- Revision:
- 14:f9a77400b622
- Parent:
- 1:e52ae6584f1c
--- a/CommandTerminal/CmdDataPending.cpp Fri Nov 04 19:10:24 2016 +0000
+++ b/CommandTerminal/CmdDataPending.cpp Fri Nov 04 14:25:43 2016 -0500
@@ -1,21 +1,14 @@
#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)
+CmdDataPending::CmdDataPending() :
+ Command("Data Pending", "AT+DP", "Indicator of data in queue on server", "(0,1)")
{
- _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());
-
+ CommandTerminal::Serial()->writef("%d\r\n", CommandTerminal::Dot()->getDataPending());
return 0;
}
