PHS module SMA-01 library. see: https://developer.mbed.org/users/phsfan/notebook/abitusbmodem/

Dependencies:   Socket lwip-sys lwip

Dependents:   AbitUSBModem_HTTPTest AbitUSBModem_MQTTTest AbitUSBModem_WebsocketTest AbitUSBModem_SMSTest

Fork of VodafoneUSBModem by mbed official

/media/uploads/phsfan/sma01_003.png

Files at this revision

API Documentation at this revision

Comitter:
ashleymills
Date:
Wed Jan 29 14:43:29 2014 +0000
Parent:
91:7b311719374d
Child:
93:4260aee1df21
Commit message:
Added a getIPAddress function

Changed in this revision

VodafoneUSBModem.cpp Show annotated file Show diff for this revision Revisions of this file
VodafoneUSBModem.h Show annotated file Show diff for this revision Revisions of this file
--- a/VodafoneUSBModem.cpp	Fri Sep 20 10:40:58 2013 +0000
+++ b/VodafoneUSBModem.cpp	Wed Jan 29 14:43:29 2014 +0000
@@ -710,3 +710,7 @@
   return OK;
 }
 
+char* VodafoneUSBModem::getIPAddress()
+{
+    return m_ppp.getIPAddress();
+}
\ No newline at end of file
--- a/VodafoneUSBModem.h	Fri Sep 20 10:40:58 2013 +0000
+++ b/VodafoneUSBModem.h	Wed Jan 29 14:43:29 2014 +0000
@@ -103,6 +103,11 @@
     @return 0 on success, error code on failure
   */
   int power(bool enable);
+  
+  /** Get the IP address of a connected device
+      @return A pointer to a string containing the IP address.
+  */
+  char* getIPAddress();
 
 protected:
   bool power(); //< Turn power to USB dongle ON.