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:
46:b30547bf07d5
Parent:
45:40745c2036cf
Parent:
44:86fa8f50a1df
Child:
139:73a7d1cd2e9c
--- a/io/IPStack.h	Thu Dec 19 21:38:01 2013 +0000
+++ b/io/IPStack.h	Thu Dec 19 21:48:32 2013 +0000
@@ -3,6 +3,8 @@
 
 #include <string>
 
+namespace mts {
+    
 /** This class is a pure virtual class that should be inherited from when implementing
 * a communications device with an onboard IP stack.  Examples of this would be a Wi-Fi
 * or Cellular radio with a built in IP stack. Typically the IP functionality in these
@@ -95,7 +97,8 @@
     * @returns the number of bytes written to the socket's write buffer. Returns
     * -1 if there was an error in writing.
     */
-    virtual int write(char* data, int length, int timeout = -1) = 0;
+    virtual int write(const char* data, int length, int timeout = -1) = 0;
+
 
     /** This method is used to get the number of bytes available to read off the
     * socket.
@@ -117,4 +120,6 @@
     virtual void reset() = 0;
 };
 
+}
+
 #endif /* IPSTACK_H */
\ No newline at end of file