8000
We read every piece of feedback, and take your input very seriously.
1 parent 25a3e8a commit 70bf03bCopy full SHA for 70bf03b
libraries/Ethernet/src/Ethernet.h
@@ -53,12 +53,12 @@ enum { // compatibility with Arduino ::maintain()
53
class EthernetClass : public MbedSocketClass {
54
55
public:
56
- // Initialise the Ethernet shield to use the provided MAC address and
57
- // gain the rest of the configuration through DHCP.
58
- // Returns 0 if the DHCP configuration failed, and 1 if it succeeded
59
EthernetClass(EthernetInterface *_if)
60
: eth_if(_if){};
61
+ // Initialise the Ethernet shield to use the provided MAC address and
+ // gain the rest of the configuration through DHCP.
+ // Returns 0 if the DHCP configuration failed, and 1 if it succeeded
62
int begin(uint8_t *mac = nullptr, unsigned long timeout = 60000, unsigned long responseTimeout = 4000);
63
EthernetLinkStatus linkStatus();
64
EthernetHardwareStatus hardwareStatus();