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: utils/Vars.h
- Revision:
- 71:82205735732b
- Parent:
- 39:6e94520a3217
- Child:
- 87:5db6c084adc7
--- a/utils/Vars.h Tue Dec 24 01:15:44 2013 +0000 +++ b/utils/Vars.h Thu Dec 26 16:12:49 2013 +0000 @@ -14,8 +14,22 @@ #endif -// An array of strings for printing the names of the Radio enum. -const string RadioNames[] = {"NA", "E1", "G2", "EV2", "H4", "EV3", "H5"}; +/// An enumeration for common responses. +enum Code { + SUCCESS, ERROR, FAILURE, NO_RESPONSE +}; + + +const unsigned int PINGDELAY = 3; //Time to wait on each ping for a response before timimg out (seconds) +const unsigned int 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 +const char CR = 0x0D; +const char NL = 0x0A; +const char CTRL_Z = 0x1A; + /** This class holds several enum types and other static variables * that are used throughout the rest of the SDK.