Skip to content

How to set timeout duration? #100

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

Closed
seanngpack opened this issue Jul 21, 2020 · 1 comment
Closed

How to set timeout duration? #100

seanngpack opened this issue Jul 21, 2020 · 1 comment
Labels
type: support OT: Request for help using the project

Comments

@seanngpack
Copy link

I am using bluetooth to controller a stepper motor using the Accelstepper library. The problem is that running the stepper is blocking. So during a long rotation, Arduino BLE drops out. Can I set a timeout duration so this does not happen?

@polldo
Copy link
Contributor

polldo commented Jul 24, 2020

Hi @seanngpack ,
you are probably interested in increasing the link supervision timeout. This parameter is negotiated between central and peripheral when the connection is initialized.
Try this: #101
You can use BLE.setSuperivisionTimeout(timeoutValue), where timeoutValue can assume values between 10 and 3200. The actual timeout will be (timeoutValue * 10 ms).

@polldo polldo added the status: waiting for information More information must be provided before work can proceed label Jul 24, 2020
@per1234 per1234 added type: support OT: Request for help using the project and removed status: waiting for information More information must be provided before work can proceed labels Mar 9, 2021
@per1234 per1234 closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: support OT: Request for help using the project
Projects
None yet
Development

No branches or pull requests

3 participants