DHCP server on ethernet

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

DHCP server on ethernet

Postby PeterR » Sat Dec 28, 2019 11:00 am

I need a DHCP server running on ESP-IDF 4.0-dev, legacy build, toolchain 3.3.1 (stable).
Either a working download and/or clues as to what worked for you.

The DHCP server only works with Wifi ESP-IDF4.0-dev. ESP-IDF 4.1 seems to have added support for Ethernet as well.
Unfortunately on ESP-IDF 4.1 the legacy build seems broken viewtopic.php?f=2&t=13585 and once I get past the compiler warnings, tcp_adapter changes etc I also have linking issues on CMake (weird directory sensitive) and if I get past all that I'm onto stability issues.
So it seems ESP-IDF 4.1 is warning me 'not quite yet'.

I note:

Code: Select all

 *add_offer_options(u8_t *optptr) 
....
     tcpip_adapter_get_ip_info(ESP_IF_WIFI_AP, &if_ip);
Seems the only Wifi specific line in the 4.0 DHCP server. Is it as simple as taking a local copy and changing this line?
Maybe I the 4.1 server would slot into 4.0?
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: AndrewLevel100 and 98 guests