Set hostname using W5500
-
Hello,
I'm using the ATOMIC PoE Base W5500 (SKU: A091).
In Arduino environment, how can I set the hostname for DHCP request? I don't seem to find any API for that purpose.Thanks.
-
The W5500 Ethernet library for Arduino does not natively support setting a DHCP hostname in its standard implementation. If you're using Ethernet.h, it lacks this functionality. For advanced DHCP options like hostname, consider using the EthernetENC or UIPEthernet library, which offer extended DHCP support. Alternatively, you’d need to modify the DHCP client in the library to include the hostname in the DHCP request packet manually.
-
Hello @hacxx
please stop posting incorrect / not very useful information. W5500 is different from ENC28J60 and therefore EthernetENC or UIPEthernet library cannot be used for W5500. Thank you.
Thanks
Felix