Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Revision:
30:1326b623919a
Parent:
27:ec44d5a9544f
Child:
31:529db15abda7
--- a/Cellular/EasyIP.h	Wed Jul 02 15:06:03 2014 +0000
+++ b/Cellular/EasyIP.h	Mon Jul 14 17:33:24 2014 +0000
@@ -25,6 +25,15 @@
 */
 class EasyIP : public Cellular     //Inherits from Cellular.
 {
+private:
+    /*Function that sends +++ to radio to exit data mode
+      returns true if successful exit from online mode, else false
+    */
+    virtual bool sendEscapeCommand(); 
+    /*Switches to command mode, queries socket connection status,
+      then returns true if there is an active socket connection, 
+      else it returns false.*/
+    virtual bool socketCheck();
 public:
 /** This static function is used to create or get a reference to a
     * Cellular object. Cellular uses the singleton pattern, which means
@@ -41,7 +50,6 @@
     * @returns a reference to the single Cellular obect that has been created.
     */
     EasyIP(Radio type);
-
     /** Destructs a Cellular object and frees all related resources.
     */
     ~EasyIP();
@@ -64,7 +72,7 @@
     virtual int write(const char* data, int length, int timeout = -1);
     virtual unsigned int readable();
     virtual unsigned int writeable();
-    virtual bool ping(const std::string& address = "8.8.8.8"); //Can this default address be different?
+    virtual bool ping(const std::string& address = "8.8.8.8"); //Google DNS server
     virtual std::string getDeviceIP();
     virtual bool setDeviceIP(std::string address = "DHCP");//What does this do? Run DHCP to configure the IP?