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.
Fork of EthernetInterface by
Diff: EthernetInterface.h
- Revision:
- 27:2124eae946f3
- Parent:
- 24:c9bb345dcc65
- Child:
- 30:4d7d7dc8485f
diff -r dd9794ce1d64 -r 2124eae946f3 EthernetInterface.h --- a/EthernetInterface.h Fri Feb 15 17:01:20 2013 +0000 +++ b/EthernetInterface.h Fri Mar 01 15:33:02 2013 +0000 @@ -49,10 +49,10 @@ /** Connect * Bring the interface up, start DHCP if needed. - * \param timeout_ms timeout in ms (default: (12)s). + * \param timeout_ms timeout in ms (default: (10)s). * \return 0 on success, a negative number on failure */ - static int connect(unsigned int timeout_ms=12000); + static int connect(unsigned int timeout_ms=15000); /** Disconnect * Bring the interface down @@ -60,6 +60,14 @@ */ static int disconnect(); + /** Get the MAC address of your Ethernet interface + * \return a pointer to a string containing the MAC address + */ + static char* getMACAddress(); + + /** Get the IP address of your Ethernet interface + * \return a pointer to a string containing the IP address + */ static char* getIPAddress(); };