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

Ping from a webserver #12

Open
FrankC2000 opened this issue Jul 29, 2017 · 4 comments
Open

Ping from a webserver #12

FrankC2000 opened this issue Jul 29, 2017 · 4 comments

Comments

@FrankC2000
Copy link

Nice work here! Thanks!

My purpose is to build a little webserver in a box. I will put a led outside to indicate the whether network is on (connected). So I ping the gateway eache 5 secs to set the led.

The problem is, as soon as the server starts to receive HTTP requests, it doesn't ping the gateway anymore, I mean does not receive SUCCESS status. Could be a socket issue?

Any thoughts? Thanks in advance.

BTW, a changed pingSocket from 0 to 3 but it didn't work.

Keep up the good work!

@BlakeFoster
Copy link
Owner

BlakeFoster commented Jul 29, 2017 via email

@FrankC2000
Copy link
Author

Thank you for your quick reply! Almost a ping ;)

I extended the Ethernet/Webserver example that comes with the IDE. The library is Ethernet.h. I have no idea what to change there.

  • Frank

@BlakeFoster
Copy link
Owner

BlakeFoster commented Jul 31, 2017 via email

@FrankC2000
Copy link
Author

What do you mean by initializing the ICMP socket? The very first call to the ICMPEchoReply.ping method?

I call Ethernet.begin before the first call to the ICMPEchoReply.ping.

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