How to define LwIP DHCP hostname in CubeMX?
Hello,
I am wondering how to set the DHCP hostname for LwIP when using STMCubeMX. The CubeMX tool creates a definition for the hostname in ethernetif.c:
#if LWIP_NETIF_HOSTNAME
/* Initialize interface hostname */
netif->hostname = "lwip";
#endif /* LWIP_NETIF_HOSTNAME */
However, this is "hard wired" in CubeMX. If I change it manually in ethernetif.c, CubeMX rewrites it to the default value "lwip" after each change in the IOC definition. There is no option in CubeMX for the DHCP hostname.
I am using the latest FW, latest Cube tools (CubeIDE version 1.11.0, CubeMX version 6.7.0).
BTW, I found the same question in the forum, four years old
( but with no satisfactory answer.
Thanks in advance for help
Best Regards
Zdenek
