2017-01-01 08:45 PM
Hello all,
Finally got my ethernet working on my omliex stm32-e407 board though generating code with the STM32Cube.
Its responding to pings so good to know that and dhcp are working finally. But it seems the host name is blank, is there somewhere in stm32cube I can set this? Or just in the code I edit myself after exporting?
Cheers,
Charles
2017-01-02 01:42 AM
Hello Charles,
To enable the host name on LwIP, first you have to define the LWIP_NETIF_HOSTNAME parameter to 1 in your lwipopts.h,
the default host name value is 'lwip', please refer to 'ethernetif_init()' function of ethernetif.c file.
Then you can change it by your preferred host name value, or you can call 'netif_set_hostname()' after the initialization to override the default name.
Best Regards.
2017-01-02 09:39 AM
Thanks very much Leo.
Best,
Charles