I'm trying to set the hostname for the ethernet interface.
But `esp_netif_set_hostname()` always returns `ESP_ERR_ESP_NETIF_IF_NOT_READY`.
`esp_netif_get_hostname()` also always only returns `ESP_ERR_ESP_NETIF_IF_NOT_READY`.
I've checked the source code of these functions and they look like:
Code: Select all
#if LWIP_NETIF_HOSTNAME
//Useful code
#else
return ESP_ERR_ESP_NETIF_IF_NOT_READY;
#endif
How and where can I make sure that `LWIP_NETIF_HOSTNAME` is properly defined?
I'm using ESP-IDF 4.4.
Thanks in advance.
Kind regards,
Remco Poelstra