flutter_blue icon indicating copy to clipboard operation
flutter_blue copied to clipboard

Race condition between Connect timeout and a successful connection leaving active connection stranded

Open jasaw opened this issue 1 year ago • 1 comments

If a Bluetooth LE connection is established while the connect timeout is triggering, flutter_blue will think that the connect call has timed out and failed but the Android OS still maintains the Bluetooth connection. Calling disconnect on flutter_blue does not disconnect the BLE connection.

The best way to trigger this bug is to set connect timeout to 4 seconds, and run hundreds of bluetooth connect and disconnect to a device that has weak signal strength (-90dB to -95dB). I have tested this on Android 8.

jasaw avatar Jun 14 '23 06:06 jasaw

Hello, this plugin is obsolete and maintenance is stopped. Use the continuous and active package : flutter_blue_plus

EliaTolin avatar Aug 06 '23 19:08 EliaTolin

This is fixed in https://pub.dev/packages/flutter_blue_plus

chipweinberger avatar Aug 09 '23 21:08 chipweinberger