1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-29 19:20:36 +02:00

Add some more BLE debug logs

This commit is contained in:
Erik Johansson
2018-07-04 23:46:06 +02:00
parent 69312b83ad
commit 40cc290dc6

View File

@@ -271,6 +271,7 @@ public abstract class BluetoothCommunication {
BluetoothGattCharacteristic gattCharacteristic = bluetoothGatt.getService(service) BluetoothGattCharacteristic gattCharacteristic = bluetoothGatt.getService(service)
.getCharacteristic(characteristic); .getCharacteristic(characteristic);
Timber.d("Read characteristic %s", characteristic);
bluetoothGatt.readCharacteristic(gattCharacteristic); bluetoothGatt.readCharacteristic(gattCharacteristic);
} }
@@ -278,6 +279,7 @@ public abstract class BluetoothCommunication {
BluetoothGattDescriptor gattDescriptor = bluetoothGatt.getService(service) BluetoothGattDescriptor gattDescriptor = bluetoothGatt.getService(service)
.getCharacteristic(characteristic).getDescriptor(descriptor); .getCharacteristic(characteristic).getDescriptor(descriptor);
Timber.d("Read descriptor %s", descriptor);
bluetoothGatt.readDescriptor(gattDescriptor); bluetoothGatt.readDescriptor(gattDescriptor);
} }
@@ -654,7 +656,8 @@ public abstract class BluetoothCommunication {
@Override @Override
public void onServicesDiscovered(final BluetoothGatt gatt, int status) { 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) { synchronized (lock) {
cmdStepNr = 0; cmdStepNr = 0;