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:
@@ -77,7 +77,7 @@ void UDP::stop()
|
||||
int UDP::beginPacket(IPAddress ip, uint16_t port)
|
||||
{
|
||||
_offset = 0;
|
||||
return startUDP(_sock, ip, port);
|
||||
return startUDP(_sock, ip.raw_address(), port);
|
||||
}
|
||||
|
||||
int UDP::endPacket()
|
||||
|
||||
Reference in New Issue
Block a user