Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ethernet library: added ability to set/get hostname #5701

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

Open
mykh wants to merge 2 commits into arduino:master
base: master
Choose a base branch
Loading
from mykh:master

Conversation

Copy link

@mykh mykh commented Dec 10, 2016

I've created overloaded Ethernet.begin() function that supports a host name parameter which is used by the DHCP request.
I've also added Ethernet.hostname() function which returns a hostname or an empty string if board was configured with static IP.
A simple example is located in the ./examples/DhcpHostname directory.

marckaraujo and Jozo132 reacted with thumbs up emoji
@facchinm facchinm added the Library: Ethernet The Ethernet Arduino library label Dec 12, 2016
@@ -31,6 +32,7 @@ class EthernetClass {
IPAddress subnetMask();
IPAddress gatewayIP();
IPAddress dnsServerIP();
char* hostname();
Copy link
Contributor

@Ivan-Perez Ivan-Perez Dec 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be const char* hostname() ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link

dab0bby commented Mar 6, 2018

Can we expect this to be merged anytime?

Copy link

Misiu commented May 20, 2020

any updates?

Copy link

@Jozo132 Jozo132 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to see this implemented!

Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
2 more reviewers

@Ivan-Perez Ivan-Perez Ivan-Perez left review comments

@Jozo132 Jozo132 Jozo132 approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
Library: Ethernet The Ethernet Arduino library
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /