alexmoon / bluest

Cross-platform Rust crate for working with Bluetooth Low Energy devices.
Apache License 2.0
64 stars 11 forks source link

android: low-latency scan support #14

Closed Dirbaio closed 7 months ago

Dirbaio commented 7 months ago

Scan by default on Android is quite slow to preserve power. You have to request a "low latency" scan mode to get decent speed.

Currently bluest API has no way to specify scan settings. What do we do?

alexmoon commented 7 months ago

The general philosophy of Bluest is to try and support consistent behavior across platforms to the greatest extent possible. The scan settings and filtering are particularly variable across the different APIs. In the interest of consistency, I'd recommend we just hardcode low latency mode to match the other platforms.