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:
123:a84f6b89132b
Parent:
108:554585370b4a
Child:
137:669d94870b68
--- a/cellular/Cellular.h	Thu Jan 02 15:45:52 2014 +0000
+++ b/cellular/Cellular.h	Thu Jan 02 15:52:46 2014 +0000
@@ -44,7 +44,7 @@
 *   for (int i = 30; i >= 0; i = i - 5) {
 *       wait(5);
 *        printf("Waiting %d seconds...\n\r", i);
-*   }    
+*   }
 *
 *   //Setup serial interface to radio
 *   MTSSerialFlowControl* serial = new MTSSerialFlowControl(PTD3, PTD2, PTA12, PTC8);
@@ -94,7 +94,7 @@
 *   for (int i = 30; i >= 0; i = i - 5) {
 *       wait(5);
 *        printf("Waiting %d seconds...\n\r", i);
-*   } 
+*   }
 *
 *   //Setup serial interface to radio
 *   MTSSerialFlowControl* serial = new MTSSerialFlowControl(PTD3, PTD2, PTA12, PTC8);
@@ -161,7 +161,7 @@
 *   for (int i = 30; i >= 0; i = i - 5) {
 *       wait(5);
 *        printf("Waiting %d seconds...\n\r", i);
-*   } 
+*   }
 *
 *   //Setup serial interface to radio
 *   MTSSerialFlowControl* serial = new MTSSerialFlowControl(PTD3, PTD2, PTA12, PTC8);
@@ -358,6 +358,13 @@
     */
     Code sendBasicCommand(const std::string& command, unsigned int timeoutMillis, char esc = CR);
 
+    /** This method is used to get the IP address of the device, which is determined
+    * via DHCP by the cellular carrier.
+    *
+    * @returns the devices IP address.
+    */
+    std::string getDeviceIP();
+    
     /** A method for testing command access to the radio.  This method sends the
     * command "AT" to the radio, which is a standard radio test to see if you
     * have command access to the radio.