Advertisement
Guest User

Untitled

a guest
Mar 4th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. BluetoothGatt bluetoothGatt = device.connectGatt(BluetoothActivity.this, false, btleGattCallback);
  2.                 bluetoothGatt.discoverServices();
  3.                 List<BluetoothGattService> services = bluetoothGatt.getServices();
  4.                 for (BluetoothGattService service : services) {
  5.                     List<BluetoothGattCharacteristic> characteristics = service.getCharacteristics();
  6.                     for (BluetoothGattCharacteristic characteristic : characteristics) {
  7.                         Log.d("Dsds", characteristic.getUuid().toString());
  8.                     }
  9.  
  10.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement