From 40cc290dc6112765c3ddec7241cab1cb948456a6 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Wed, 4 Jul 2018 23:46:06 +0200 Subject: [PATCH] Add some more BLE debug logs --- .../openscale/core/bluetooth/BluetoothCommunication.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothCommunication.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothCommunication.java index 29faecf0..fa832579 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothCommunication.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothCommunication.java @@ -271,6 +271,7 @@ public abstract class BluetoothCommunication { BluetoothGattCharacteristic gattCharacteristic = bluetoothGatt.getService(service) .getCharacteristic(characteristic); + Timber.d("Read characteristic %s", characteristic); bluetoothGatt.readCharacteristic(gattCharacteristic); } @@ -278,6 +279,7 @@ public abstract class BluetoothCommunication { BluetoothGattDescriptor gattDescriptor = bluetoothGatt.getService(service) .getCharacteristic(characteristic).getDescriptor(descriptor); + Timber.d("Read descriptor %s", descriptor); bluetoothGatt.readDescriptor(gattDescriptor); } @@ -654,7 +656,8 @@ public abstract class BluetoothCommunication { @Override public void onServicesDiscovered(final BluetoothGatt gatt, int status) { - Timber.d("onServicesDiscovered: status=%d", status); + Timber.d("onServicesDiscovered: status=%d (%d services)", + status, gatt.getServices().size()); synchronized (lock) { cmdStepNr = 0;