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

[MacOS] Add timeout to connect #258

Merged

Conversation

BlissChapman
Copy link
Contributor

@BlissChapman BlissChapman commented Sep 6, 2023

Corebluetooth docs: Attempts to connect to a peripheral don't time out. SimpleBLE should expose a connectWithTimeout method to handle this flow gracefully for the consumer.

@kdewald kdewald merged commit 311386e into OpenBluetoothToolbox:main Sep 7, 2023
46 checks passed
@kdewald
Copy link
Member

kdewald commented Sep 7, 2023

@Andrey1994 this will probably also fix the issues that you saw.

@Andrey1994
Copy link
Contributor

Yes, I saw this PR, thanks! At least should not hang in deadlock, and maybe will solve the issue completly

@kdewald
Copy link
Member

kdewald commented Sep 7, 2023

I'm quite mad that I missed that detail in the documentation. Given that they have callbacks for failed connections, it seems dumb that the user has to manually implement their own timeout logic.

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

Successfully merging this pull request may close these issues.

3 participants