flutter_bluetooth_serial
flutter_bluetooth_serial copied to clipboard
Device disconnected callback needed
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.
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.