Multi-Hackers / SocketModem

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
123:a84f6b89132b
Parent:
122:5f95f81a8b03
Child:
141:571e0ef6c8dc
diff -r 5f95f81a8b03 -r a84f6b89132b cellular/Cellular.cpp
--- a/cellular/Cellular.cpp	Thu Jan 02 15:45:52 2014 +0000
+++ b/cellular/Cellular.cpp	Thu Jan 02 15:52:46 2014 +0000
@@ -22,6 +22,7 @@
     , socketOpened(false)
     , socketCloseable(true)
     , local_port(0)
+    , local_address("")
     , host_port(0)
     , dcd(NULL)
     , dtr(NULL)
@@ -548,6 +549,11 @@
     }
 }
 
+std::string Cellular::getDeviceIP()
+{
+    return local_address;
+}
+
 Code Cellular::test()
 {
     bool basicRadioComms = false;