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

Handle lost connections gracefully... writeWithoutResponse crashes #32

Open
gingerjinjo opened this issue Nov 18, 2022 · 1 comment
Open

Comments

@gingerjinjo
Copy link

Firstly, thanks for the work on this library. I can connect a device and stream messages back and forth really nicely, but if the connection to a peripheral device is lost (out of range) then the write (WithoutResponse) crashes both the plugin and Native Example. It looks like CoreBluetooth knows the write will fail, but the plugin doesn't check/handle it.

Have you tested yourself with peripheral devices either being powered-off or going out-of-range?

@lehtiniemi
Copy link

I'm also looking for a way to get info on peripheral disconnection. Is there any way to get this info somewhere?

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