Skip to content

Instantly share code, notes, and snippets.

@EdsonAlcala
Created October 19, 2017 16:33
Show Gist options
  • Select an option

  • Save EdsonAlcala/67d8547db9e1fcb54f4eee6c70283a05 to your computer and use it in GitHub Desktop.

Select an option

Save EdsonAlcala/67d8547db9e1fcb54f4eee6c70283a05 to your computer and use it in GitHub Desktop.
Subscription subscription = device.establishConnection(getApplicationContext(), false)
.subscribe(
rxBleConnection -> {
Log.e("MainActivity", "rxBleConnection: " + rxBleConnection);
// All GATT operations are done through the rxBleConnection.
},
throwable -> {
// Handle an error here.
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment