Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Fork of VodafoneUSBModem by
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.
