1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-22 16:23:09 +02:00

BluetoothBeurerBF600 and BluetoothSwpSBF77: show debug message if setNotifyVendorSpecificUserList() passed or failed;

This commit is contained in:
Krisjans Blukis
2021-07-29 17:04:55 +03:00
parent 54d478543c
commit 88d2594b59
2 changed files with 14 additions and 4 deletions

View File

@@ -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

View File

@@ -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