A library for talking to Multi-Tech's Cellular SocketModem Devices.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: cellular/Cellular.h
- Revision:
- 33:e04aa7c013c9
- Parent:
- 30:06c756af6c5c
- Parent:
- 32:629e6b1c8e22
- Child:
- 34:60682c702c3f
--- a/cellular/Cellular.h Wed Dec 18 17:25:16 2013 +0000 +++ b/cellular/Cellular.h Wed Dec 18 22:47:24 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"};