You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idf API allows setting the hostname by adding CONFIG_LWIP_LOCAL_HOSTNAME=<chosen-hostname> to the sdkconfig.defaults file. That doesn't seem to work in esp-wifi. Is there another way to do it?
The text was updated successfully, but these errors were encountered:
I figured out how to do this at least with embassy-net. For posterity, you can set a hostname on the DhcpConfig. This does require enabling the dchpv4-hostname feature on the embassy-net dep.
let mut dhcp_config = DhcpConfig::default();
dhcp_config.hostname = Some(heapless::String::from_str("test-hostname").unwrap());
let embassy_net_config = embassy_net::Config::dhcpv4(dhcp_config);
The idf API allows setting the hostname by adding
CONFIG_LWIP_LOCAL_HOSTNAME=<chosen-hostname>
to the sdkconfig.defaults file. That doesn't seem to work inesp-wifi
. Is there another way to do it?The text was updated successfully, but these errors were encountered: