Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: 1.0.0-alpha02
Devices/Android versions reproduced on: Pixel 6a
The filter is not working in my case:
val scanFilter = androidx.bluetooth.ScanFilter(
manufacturerId = 1529,
deviceName = networkId,
)
Timber.tag("Bluetooth").d("networkId: $networkId")
val bluetoothLe = BluetoothLe(context = applicationContext)
// The time this takes to collect ranges from 0-xx seconds, don't know yet if lib issue or real cause.
bluetoothLe.scan(listOf(scanFilter)).timeout(60.seconds).collect { scanResult: ScanResult ->
Timber.tag("Bluetooth").d("bluetoothLe.scan().collect")
if (!isActive) return@collect
Timber.tag("Bluetooth").d("found device address: ${scanResult.deviceAddress.address}")
Timber.tag("Bluetooth").d("found device id: ${
Timber.tag("Bluetooth").d("found device name: ${
Timber.tag("Bluetooth").d("found device rssi: ${scanResult.rssi}")
I'm getting all devices nearby, not only from the manufacturerId I defined.
There is a second problem that on reconnection I'm getting