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

Timeout selection need for disconnected controller #81

Closed
mkornmue opened this issue Mar 16, 2024 · 2 comments
Closed

Timeout selection need for disconnected controller #81

mkornmue opened this issue Mar 16, 2024 · 2 comments

Comments

@mkornmue
Copy link

Is there a way to select the timeout when no data is available from controller?

Now it appears that the timeout when the controller is not in range takes about 1 to 5 seconds or something?!
I want to adjust this timeout to get a disconnected after 100ms at least.

Best way would be that within the Arduino setup function where the callbacks for on Connected and on Disconnected also the timeout can be specified.

Is there a way to do that?

@ricardoquesada
Copy link
Owner

The alternative is to use this: #42 (comment)

If you don't receive data in certain amount of time, then assume it is disconnected.

(closing it as duplicate... use the bug linked above if you need further clarification)

@mkornmue
Copy link
Author

Thx. Thats solves my problem.

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