Mbed_demos ALU

Dependencies:   Socket lwip-eth lwip-sys lwip

Fork of EthernetInterface by mbed official

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();
 };