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

[Feature Request] Timeout for ping #28

Open
pranjal-joshi opened this issue Jun 5, 2020 · 0 comments
Open

[Feature Request] Timeout for ping #28

pranjal-joshi opened this issue Jun 5, 2020 · 0 comments

Comments

@pranjal-joshi
Copy link

@dancol90 Hello,
Is there any method to set timeout while pinging? If the ping is not received within the timeout, return as HOST_UNREACHABLE.
I really need the timeout feature for my application where ESP needs to figure whether the network is connected to the internet or not.
Something like following will be nicer to have:

Ping.setTimeout(ms);
bool status = Ping.ping(HOST);
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

1 participant