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

Device disconnected callback needed #190

Open
mategyorfy opened this issue Jan 3, 2023 · 1 comment
Open

Device disconnected callback needed #190

mategyorfy opened this issue Jan 3, 2023 · 1 comment

Comments

@mategyorfy
Copy link

Hi!
Could you make the onDisconnected callback public? I haven't found any ways to let my app know when the remote device is disconnected so it would me a lot if you made it public.

@mategyorfy mategyorfy reopened this Jan 5, 2023
@AlecDr
Copy link

AlecDr commented Mar 23, 2023

Hey @MatejaBoy

the onDone() function from the BluetoothConnection instance should work, there you can receive an disconnect fired from you or from the device.

Also check the library example, there you can get an idea from the chat screen code.

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