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-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdDataPending.cpp@16:3b1d46c1db11, 2017-08-14 (annotated)
- Committer:
- Fran6
- Date:
- Mon Aug 14 12:40:21 2017 +0000
- Revision:
- 16:3b1d46c1db11
- Parent:
- 14:f9a77400b622
mDot AT-Firmware
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Mike Fiore |
1:e52ae6584f1c | 1 | #include "CmdDataPending.h" |
| Mike Fiore |
1:e52ae6584f1c | 2 | |
| Mike Fiore |
14:f9a77400b622 | 3 | CmdDataPending::CmdDataPending() : |
| Mike Fiore |
14:f9a77400b622 | 4 | Command("Data Pending", "AT+DP", "Indicator of data in queue on server", "(0,1)") |
| Mike Fiore |
1:e52ae6584f1c | 5 | { |
| Mike Fiore |
1:e52ae6584f1c | 6 | _queryable = true; |
| Mike Fiore |
1:e52ae6584f1c | 7 | } |
| Mike Fiore |
1:e52ae6584f1c | 8 | |
| Mike Fiore |
1:e52ae6584f1c | 9 | uint32_t CmdDataPending::action(std::vector<std::string> args) |
| Mike Fiore |
1:e52ae6584f1c | 10 | { |
| Mike Fiore |
14:f9a77400b622 | 11 | CommandTerminal::Serial()->writef("%d\r\n", CommandTerminal::Dot()->getDataPending()); |
| Mike Fiore |
1:e52ae6584f1c | 12 | return 0; |
| Mike Fiore |
1:e52ae6584f1c | 13 | } |
| Mike Fiore |
1:e52ae6584f1c | 14 |
