mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +03:00
@ -8,9 +8,15 @@ uint8_t EthernetClass::_state[MAX_SOCK_NUM] = {
|
||||
uint16_t EthernetClass::_server_port[MAX_SOCK_NUM] = {
|
||||
0, 0, 0, 0 };
|
||||
|
||||
#ifdef ESP8266
|
||||
static DhcpClass s_dhcp;
|
||||
#endif
|
||||
|
||||
int EthernetClass::begin(uint8_t *mac_address)
|
||||
{
|
||||
#ifndef ESP8266
|
||||
static DhcpClass s_dhcp;
|
||||
#endif
|
||||
_dhcp = &s_dhcp;
|
||||
|
||||
|
||||
@ -133,4 +139,4 @@ IPAddress EthernetClass::dnsServerIP()
|
||||
return _dnsServerAddress;
|
||||
}
|
||||
|
||||
EthernetClass Ethernet;
|
||||
EthernetClass Ethernet;
|
Reference in New Issue
Block a user