FUNCTIONAL Update from mbed v49: Add APIs for setName/getName so device is name addressible. Also APIs for getting link stats. Also, minor derivative to reduce compiler warnings and tag read-only parameters as const.
Dependencies: Socket lwip-eth lwip-sys lwip
Dependents: WattEye X10Svr SSDP_Server
Fork of EthernetInterface by
Diff: EthernetInterface.h
- Revision:
- 21:8cd2de462559
- Parent:
- 20:0d9ae7845bfe
- Child:
- 23:5d5b40c4378b
--- a/EthernetInterface.h Wed Aug 01 13:02:38 2012 +0000 +++ b/EthernetInterface.h Fri Aug 03 14:43:57 2012 +0000 @@ -45,9 +45,10 @@ /** Connect * Bring the interface up, start DHCP if needed. + * \param timeout_ms timeout in ms (default: (3)s). * \return 0 on success, a negative number on failure */ - static int connect(); + static int connect(unsigned int timeout_ms=3000); /** Disconnect * Bring the interface down