OLIMEX / ESP32-POE

ESP32 IoT development board with 100Mb Ethernet and 802.3 Power Over Ethernet (POE)
Apache License 2.0
292 stars 110 forks source link

Setting hostname works for WLAN (Wifi) but not for LAN (Ethernet) #38

Open hagenbuch opened 1 year ago

hagenbuch commented 1 year ago

I have several Olimex ESP32-POE Rev. B and I am using micropython 1.20. Howeever, the source of the bug I think I have seen might come from here.

I am able to set an own hostname

network.hostname("myhost") 

that will be used while requesting an IP via DHCP when using WLAN (Wifi).

However, when I try to use LAN (Ethernet), the hostname the DHCP server remains always ESP32-POE.

I assume this might be true even for Arduino, so maybe someone would like to shed a little light on this? I'l ltry to ask the micropython folks as well..

Andreas