1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-24 19:42:27 +03:00

modified Ethernet (w5100) library to run on the ESP8266

see #962
This commit is contained in:
Markus Sattler
2015-11-05 20:59:17 +01:00
parent 6735cad17a
commit 2a01c2ad53
4 changed files with 22 additions and 8 deletions

View File

@ -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;