Multi-Hackers / SocketModem

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

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"};