Vodafone K3770/K3772-Z modems driver & networking library
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Dependents: VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more
Fork of VodafoneUSBModem_bleedingedge by
This is the driver for the Vodafone K3700 & K3772-Z Dongles:
More details and instructions can be found here.
Revision 92:ed0443728c60, committed 2014-01-29
- 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.