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:
41:81d035fb0b6a
Parent:
34:60682c702c3f
Child:
43:3cacf019ed7d
--- a/cellular/Cellular.h	Thu Dec 19 15:56:05 2013 +0000
+++ b/cellular/Cellular.h	Thu Dec 19 21:16:30 2013 +0000
@@ -185,7 +185,7 @@
     virtual bool isOpen();
     virtual bool close();
     virtual int read(char* data, int max, int timeout = -1);
-    virtual int write(char* data, int length, int timeout = -1);
+    virtual int write(const char* data, int length, int timeout = -1);
     virtual unsigned int readable();
     virtual unsigned int writeable();
 
@@ -278,7 +278,7 @@
     * @param the DNS server address as a string in form xxx.xxx.xxx.xxx.
     * @returns the standard AT Code enumeration.
     */
-    Code setDns(const std::string& address);
+    Code setDns(const std::string& primary, const std::string& secondary = "0.0.0.0");
 
     /** This method is used test network connectivity by pinging a server.
     *