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-src
Fork of mDot_AT_firmware by
CmdDataPending.cpp
00001 #include "CmdDataPending.h" 00002 00003 CmdDataPending::CmdDataPending(mDot* dot, mts::MTSSerial& serial) : 00004 Command(dot, "Data Pending", "AT+DP", "Indicator of data in queue on server"), 00005 _serial(serial) 00006 { 00007 _help = std::string(text()) + ": " + std::string(desc()); 00008 _usage = "(0,1)"; 00009 _queryable = true; 00010 } 00011 00012 uint32_t CmdDataPending::action(std::vector<std::string> args) 00013 { 00014 if (_dot->getVerbose()) 00015 _serial.writef("Data Pending: "); 00016 00017 _serial.writef("%d\r\n", _dot->getDataPending()); 00018 00019 return 0; 00020 } 00021
Generated on Tue Jul 12 2022 21:40:57 by
1.7.2
