I am trying to scan for a specific BLE advertisement based on UUID. I came up with the below code but the scan does not return any result.
final UUID[] comm_UUID = {UUID.fromString("0000b81d-0000-1000-8000-00805f9b34fb")};
mBluetoothAdapter.startLeScan(comm_UUID, mLeScanCallback);
I tried scanning without the filter mBluetoothAdapter.startLeScan(mLeScanCallback);
and it is working just fine, but callback reports all BLE advertisements in the vicinity.
Am I performing the scan incorrectly?