mirror of
https://github.com/esp8266/Arduino.git
synced 2025-12-19 22:42:48 +03:00
Fix for issue 62, adding DHCP support. New begin() method added to EthernetClass which takes just a MAC address and gets the rest of its configuration information via DHCP. Examples updated to use the IPAddress class and some have been changed to get their config via DHCP.
This commit is contained in:
@@ -7,8 +7,8 @@ class Client : public Stream {
|
||||
|
||||
public:
|
||||
Client();
|
||||
Client(uint8_t);
|
||||
Client(uint8_t *, uint16_t);
|
||||
Client(uint8_t sock);
|
||||
Client(IPAddress& ip, uint16_t port);
|
||||
|
||||
uint8_t status();
|
||||
uint8_t connect();
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
private:
|
||||
static uint16_t _srcport;
|
||||
uint8_t _sock;
|
||||
uint8_t *_ip;
|
||||
IPAddress _ip;
|
||||
uint16_t _port;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user