Skip to content

Instantly share code, notes, and snippets.

@reime005
Created October 10, 2017 11:12
Show Gist options
  • Save reime005/1fdcbda09a254a7cc5bdc5b3cb632bed to your computer and use it in GitHub Desktop.
Save reime005/1fdcbda09a254a7cc5bdc5b3cb632bed to your computer and use it in GitHub Desktop.
Discovering Anki Overdrive Vehicles via tinyB
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