esp_netif_set_hostname() doc host name max length should be 31. Incorrect doc
Posted: Sun Mar 07, 2021 11:25 pm
Here is the doc:
https://docs.espressif.com/projects/esp ... tif_tPKc Says max host name is 32. Triggered assertion from lwip about host name too long:
https://docs.espressif.com/projects/esp ... tif_tPKc Says max host name is 32. Triggered assertion from lwip about host name too long:
Through trial and error is was 31 bytes plus \0.assertion "DHCP: hostname is too long!" failed: file "C:/Users/user/.espressif/esp-idf-v4.3-beta1/components/lwip/lwip/src/core/ipv4/dhcp.c", line 1655, function: dhcp_option_hostname