Created
October 10, 2017 11:12
-
-
Save reime005/1fdcbda09a254a7cc5bdc5b3cb632bed to your computer and use it in GitHub Desktop.
Discovering Anki Overdrive Vehicles via tinyB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final BluetoothManager manager = BluetoothManager.getBluetoothManager(); | |
manager.startDiscovery () ; | |
for (BluetoothDevice device : manager.getDevices()) { | |
if (Arrays . asList ( device .getUUIDs()).contains(”be15beef−6186−407e−8381−0bd89c4d8df4”)) { | |
// device is of anki overdrive | |
} | |
} | |
manager.stopDiscovery(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment