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

Support for setting hostname for Ethernet #5

Open
as-iotex opened this issue Dec 2, 2024 · 1 comment
Open

Support for setting hostname for Ethernet #5

as-iotex opened this issue Dec 2, 2024 · 1 comment

Comments

@as-iotex
Copy link

as-iotex commented Dec 2, 2024

Hi @JAndrassy

Thanks for the lib. I am currently trying to set the hostname for Ethernet using:

NetworkManager::setHostname(this->networkDetails.hostname);
Ethernet.begin(
                this->networkDetails.mac, 
                IPAddress(this->networkDetails.ip),
                IPAddress(this->networkDetails.dns),
                IPAddress(this->networkDetails.gateway),
                IPAddress(this->networkDetails.netmask)
            );

But it doesn't seem to work. The hostname is empty

Is this supported?

@JAndrassy
Copy link
Member

hostname is used with DHCP, not with static IP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants