Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EspWifi: setting the client hostname #550

Closed
dwery opened this issue Jan 11, 2025 · 2 comments
Closed

EspWifi: setting the client hostname #550

dwery opened this issue Jan 11, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@dwery
Copy link

dwery commented Jan 11, 2025

It looks like it's not possible to reach the set_hostname method. Not sure if it's intended, but it would be useful as it's supposedly used to send out the hostname in DHCP requests (currently defaults to "espressif").

 wifi.wifi().sta_netif().set_hostname("foobar");

error[E0624]: method set_hostname is private

@dwery dwery added the enhancement New feature or request label Jan 11, 2025
@ivmarkov
Copy link
Collaborator

ivmarkov commented Jan 11, 2025

Since this question recently comes every other day: https://github.com/esp-rs/esp-idf-svc/blob/master/examples/wifi_dhcp_with_hostname.rs

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jan 11, 2025
@dwery
Copy link
Author

dwery commented Jan 11, 2025

@ivmarkov That was unexpected, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants