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?