Jason Reiss / Mbed OS Dot-AT-Firmware-XDOT

Dependencies:   MTS-Serial libxDot-mbed5

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdDataPending.cpp Source File

CmdDataPending.cpp

00001 #include "CmdDataPending.h"
00002 
00003 CmdDataPending::CmdDataPending() :
00004         Command("Data Pending", "AT+DP", "Indicator of data in queue on server", "(0,1)")
00005 {
00006     _queryable = true;
00007 }
00008 
00009 uint32_t CmdDataPending::action(std::vector<std::string> args)
00010 {
00011     CommandTerminal::Serial()->writef("%d\r\n", CommandTerminal::Dot()->getDataPending());
00012     return 0;
00013 }
00014