From 6460b391d91d931dce907e726bd3e16181020812 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Mon, 19 Oct 2015 15:16:21 +0200 Subject: [PATCH] Be dump the content of the notification to the debug log --- .../freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java index c286d64e7..6e3194f18 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java @@ -409,7 +409,11 @@ public final class BtLEQueue { @Override public void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { - LOG.debug("characteristic changed: " + characteristic.getUuid()); + String content = ""; + for (byte b : characteristic.getValue()) { + content += String.format(" 0x%1x", b); + } + LOG.debug("characteristic changed: " + characteristic.getUuid() + " value: " + content ); if (!checkCorrectGattInstance(gatt, "characteristic changed")) { return; }