@@ -83,15 +83,11 @@ class LwipIntfDev: public LwipIntf, public RawDev
83
83
return &_netif;
84
84
}
85
85
86
- uint8_t * macAddress (uint8_t * mac) // WiFi lib way
86
+ uint8_t * macAddress (uint8_t * mac)
87
87
{
88
88
memcpy (mac, &_netif.hwaddr , 6 );
89
89
return mac;
90
90
}
91
- void MACAddress (uint8_t * mac) // Ethernet lib way
92
- {
93
- macAddress (mac);
94
- }
95
91
IPAddress localIP () const
96
92
{
97
93
return IPAddress (ip4_addr_get_u32 (ip_2_ip4 (&_netif.ip_addr )));
@@ -104,15 +100,11 @@ class LwipIntfDev: public LwipIntf, public RawDev
104
100
{
105
101
return IPAddress (ip4_addr_get_u32 (ip_2_ip4 (&_netif.gw )));
106
102
}
107
- IPAddress dnsIP (int n = 0 ) const // WiFi lib way
103
+ IPAddress dnsIP (int n = 0 ) const
108
104
{
109
105
return IPAddress (dns_getserver (n));
110
106
}
111
- IPAddress dnsServerIP () const // Ethernet lib way
112
- {
113
- return dnsIP (0 );
114
- }
115
- void setDNS (IPAddress dns1, IPAddress dns2 = INADDR_ANY) // WiFi lib way
107
+ void setDNS (IPAddress dns1, IPAddress dns2 = INADDR_ANY)
116
108
{
117
109
if (dns1.isSet ())
118
110
{
@@ -123,10 +115,6 @@ class LwipIntfDev: public LwipIntf, public RawDev
123
115
dns_setserver (1 , dns2);
124
116
}
125
117
}
126
- void setDnsServerIP (const IPAddress dnsIP) // Ethernet lib way
127
- {
128
- setDNS (dnsIP);
129
- }
130
118
131
119
// 1. Currently when no default is set, esp8266-Arduino uses the first
132
120
// DHCP client interface receiving a valid address and gateway to
0 commit comments