EthernetInterface patched with https://github.com/mbedmicro/mbed/commit/8222bde1af2e328e4c58d0f438827f3091e5e0eb

Dependencies:   Socket lwip-eth-ansond-patched lwip-sys lwip-ansond-patched

Dependents:   df-2013-thermostat-handson df-2013-minihack-thermostat-complete df-2013-minihack-thermostat df-2013-thermostat-remotes

Fork of EthernetInterface by mbed official

Revision:
27:2124eae946f3
Parent:
24:c9bb345dcc65
Child:
30:4d7d7dc8485f
--- 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();
 };