1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-28 18:49:56 +02:00

Add support for Silvercrest SBF75 scale (which seems to be a rebranded Sanitas SBF70).

This commit is contained in:
Matus Horvath
2017-12-25 03:09:07 +01:00
parent 7283bd1733
commit 48cd15a404
2 changed files with 15 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication {
@Override @Override
public String deviceName() { public String deviceName() {
return "Sanitas SBF70"; return "Sanitas SBF70/SilverCrest SBF75";
} }
@Override @Override
@@ -119,6 +119,20 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication {
return "SANITAS SBF70"; return "SANITAS SBF70";
} }
@Override
public boolean checkDeviceName(String btDeviceName) {
if (super.checkDeviceName(btDeviceName)) {
return true;
}
// SilverCrest SBF75 (also known as HealthForYou by SilverCrest)
if (btDeviceName.toLowerCase().startsWith("sbf75")) {
return true;
}
return false;
}
@Override @Override
boolean nextInitCmd(int stateNr) { boolean nextInitCmd(int stateNr) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB