PhilipsHue / flutter_reactive_ble

Flutter library that handles BLE operations for multiple devices.
https://developers.meethue.com/
Other
661 stars 321 forks source link

Speed up connectToAdvertisingDevice #874

Open maBarabas opened 2 months ago

maBarabas commented 2 months ago

Fixes #873 for the case where there is no previous scan running.

It is a 3x performance improvement in my project where the prescan takes 5 seconds as suggested by the README, but the device is discovered in less than a second. The time taken to connect to the device changes from 6 seconds to 2 seconds.