PhilipsHue / flutter_reactive_ble

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

`connectToAdvertisingDevice`: Check for recently discovered device when BLE scan already running #875

Open maBarabas opened 2 months ago

maBarabas commented 2 months ago

Prevents error reported in #872 as long as the device was scanned within the last _scanRegistryCacheValidityPeriod (25 seconds) from where connectToAdvertisingDevice is called. In practice, this is as good as always for usecases where a device is selected from a scan list and immediately connected.