From 88d2594b5950011b475a798ffe2dda465bc77adc Mon Sep 17 00:00:00 2001 From: Krisjans Blukis Date: Thu, 29 Jul 2021 17:04:55 +0300 Subject: [PATCH] BluetoothBeurerBF600 and BluetoothSwpSBF77: show debug message if setNotifyVendorSpecificUserList() passed or failed; --- .../openscale/core/bluetooth/BluetoothBeurerBF600.java | 9 +++++++-- .../openscale/core/bluetooth/BluetoothSwpSBF77.java | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF600.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF600.java index 05e9dced..cf48575b 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF600.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF600.java @@ -84,8 +84,13 @@ public class BluetoothBeurerBF600 extends BluetoothStandardWeightProfile { @Override protected void setNotifyVendorSpecificUserList() { - setNotificationOn(BluetoothGattUuidBF600.SERVICE_BEURER_CUSTOM_BF600, - BluetoothGattUuidBF600.CHARACTERISTIC_BEURER_BF600_USER_LIST); + if (setNotificationOn(BluetoothGattUuidBF600.SERVICE_BEURER_CUSTOM_BF600, + BluetoothGattUuidBF600.CHARACTERISTIC_BEURER_BF600_USER_LIST)) { + Timber.d("setNotifyVendorSpecificUserList() OK"); + } + else { + Timber.d("setNotifyVendorSpecificUserList() FAILED"); + } } @Override diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSwpSBF77.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSwpSBF77.java index a464f491..545c2d4c 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSwpSBF77.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSwpSBF77.java @@ -59,8 +59,13 @@ public class BluetoothSwpSBF77 extends BluetoothStandardWeightProfile { @Override protected void setNotifyVendorSpecificUserList() { - setNotificationOn(BluetoothGattUuidSBF77.SERVICE_CUSTOM_SBF77, - BluetoothGattUuidSBF77.CHARACTERISTIC_SBF77_USER_LIST); + if (setNotificationOn(BluetoothGattUuidSBF77.SERVICE_CUSTOM_SBF77, + BluetoothGattUuidSBF77.CHARACTERISTIC_SBF77_USER_LIST)) { + Timber.d("setNotifyVendorSpecificUserList() OK"); + } + else { + Timber.d("setNotifyVendorSpecificUserList() FAILED"); + } } @Override