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.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: cellular/Cellular.h
- Revision:
- 32:629e6b1c8e22
- Parent:
- 27:8e6188cbcfd4
- Child:
- 33:e04aa7c013c9
--- a/cellular/Cellular.h Tue Dec 17 23:58:50 2013 +0000
+++ b/cellular/Cellular.h Wed Dec 18 22:45:53 2013 +0000
@@ -10,6 +10,10 @@
#define PINGDELAY 3 //Time to wait on each ping for a response before timimg out (seconds)
#define PINGNUM 4 //Number of pings to try on ping command
+//Special Payload Characters
+const char ETX = 0x03; //Ends socket connection
+const char DLE = 0x10; //Escapes ETX and DLE within Payload
+
// An array of strings for printing the names of the Code enum.
const string CodeNames[] = {"OK", "ERROR", "NO_RESPONSE", "FAILURE"};
uIP Socket Modem Shield (Outdated - see below)