1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

LwipIntfDev - config static IP auto gw,mask,dns as in Arduino libraries (#9040)

for 'modern' Ethernet libraries W5100lwIP, W5500lwIP and ENC28J60lwIP
used without EthernetCompat
This commit is contained in:
Juraj Andrássy
2023-12-01 10:36:35 +01:00
committed by GitHub
parent 1efe5ee3fc
commit 9e73cf0021
2 changed files with 30 additions and 3 deletions

View File

@ -86,6 +86,13 @@ public:
return ret;
}
void end()
{
ip_addr_copy(LwipIntfDev<RawDev>::_netif.ip_addr,
ip_addr_any); // to allow DHCP at next begin
LwipIntfDev<RawDev>::end();
}
HardwareStatus hardwareStatus() const
{
return _hardwareStatus;