Android bluetoothadapter.startLeScan, filter by UUID

I want to scan a BLE device using a method startLeScan(UUID[] serviceUuids, LeScanCallback callback)

, now I have a UUID, this is a 16 bit value for example 00000000-0000-1000-8000-00805F9B34FB

.

How can I use UUID in a method startLeScan

, I write like this:

UUID[] uuid = new UUID[1]; uuid[0] = UUID.fromString("00000000-0000-1000-8000-00805F9B34FB");
mBluetoothAdapter.startLeScan(uuid, mLeScanCallback);

      

But finally, I can't scan anything. How can I solve this problem.

+3
java uuid


source to share


No one has answered this question yet

See similar questions:

0
startLeScan returns no results when filtering

or similar:

3842
Create GUID / UUID in JavaScript?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
795
Is there a difference between a GUID and a UUID?
eleven
Android Bluetooth Where can I get the UUID?
4
Don't receive BLE notifications in Android
2
Retrieving custom UUIDs from remote bluetooth device for Android
1
Randomly generating UUIDs
0
Android cannot connect to BlueZ server
0
How do I get the service name for the corresponding UUID in bluetooth?
0
Bluetooth GATT UUID



All Articles
Loading...
X
Show
Funny
Dev
Pics