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

Revision:
39:6e94520a3217
Parent:
34:60682c702c3f
Child:
40:14342c4de476
--- a/cellular/Cellular.h	Thu Dec 19 15:56:05 2013 +0000
+++ b/cellular/Cellular.h	Thu Dec 19 19:49:58 2013 +0000
@@ -7,6 +7,8 @@
 #include <string>
 #include <vector>
 
+namespace mts {
+
 #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
 
@@ -127,12 +129,12 @@
 * @endcode
 */
 
-class Cellular : virtual IPStack
+class Cellular : virtual mts::IPStack
 {
 public:
     /// An enumeration for common responses to an AT command.
     enum Code {
-        OK, ERROR, NO_RESPONSE, FAILURE
+        CELL_OK, CELL_ERROR, CELL_NO_RESPONSE, CELL_FAILURE
     };
 
     /// An enumeration for escape characters at the end of AT commands.
@@ -336,4 +338,6 @@
     Cellular(MTSBufferedIO* io); //Private constructor, use the getInstance() method.
 };
 
+}
+
 #endif /* CELLULAR_H */
\ No newline at end of file