Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BluetoothGatt bluetoothGatt = device.connectGatt(BluetoothActivity.this, false, btleGattCallback);
- bluetoothGatt.discoverServices();
- List<BluetoothGattService> services = bluetoothGatt.getServices();
- for (BluetoothGattService service : services) {
- List<BluetoothGattCharacteristic> characteristics = service.getCharacteristics();
- for (BluetoothGattCharacteristic characteristic : characteristics) {
- Log.d("Dsds", characteristic.getUuid().toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement