I am using Companion device pairing and followed this guide.
I want to scan for devices and filter them using UUID. I tried the following
val deviceFilter: BluetoothLeDeviceFilter = BluetoothLeDeviceFilter.Builder()
.setScanFilter(
ScanFilter.Builder().setServiceUuid(ParcelUuid(advertisementServiceUuid))
.setDeviceName("Heart Rate")
.build())
.build()
and when I filter for device name it works. it doesn't work when I filter using uuid.
any idea why?
Are u filtering by using the 16 Bit number? Because u have to take the full 128 Bit to make it work.