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:
40:14342c4de476
Parent:
36:bb6b293c7495
Parent:
39:6e94520a3217
Child:
43:3cacf019ed7d
--- a/cellular/Cellular.h	Thu Dec 19 16:54:09 2013 +0000
+++ b/cellular/Cellular.h	Thu Dec 19 19:53:43 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.
@@ -338,4 +340,6 @@
     Cellular(MTSBufferedIO* io); //Private constructor, use the getInstance() method.
 };
 
+}
+
 #endif /* CELLULAR_H */
\ No newline at end of file