Skip to content

Support for setting hostname for Ethernet #5

@as-iotex

Description

@as-iotex

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions