Guest User

Untitled

a guest
Mar 4th, 2017
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                 }
RAW Paste Data