1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-30 19:49:59 +02:00

Add Excelvan CF366BLE to list of supported scales

Also rename the driver to indicate that CF369BLE isn't the only scale
supported by that driver.
This commit is contained in:
Erik Johansson
2018-07-03 23:37:57 +02:00
parent 97e4210725
commit 795b657702
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ import com.health.openscale.core.utils.Converters;
import java.util.Arrays;
import java.util.UUID;
public class BluetoothExcelvanCF369BLE extends BluetoothCommunication {
public class BluetoothExcelvanCF36xBLE extends BluetoothCommunication {
private final UUID WEIGHT_MEASUREMENT_SERVICE = UUID.fromString("0000FFF0-0000-1000-8000-00805f9b34fb");
private final UUID WEIGHT_MEASUREMENT_CHARACTERISTIC = UUID.fromString("0000FFF1-0000-1000-8000-00805f9b34fb");
private final UUID WEIGHT_CUSTOM0_CHARACTERISTIC = UUID.fromString("0000FFF4-0000-1000-8000-00805f9b34fb");
@@ -37,13 +37,13 @@ public class BluetoothExcelvanCF369BLE extends BluetoothCommunication {
private byte[] receivedData = new byte[]{};
public BluetoothExcelvanCF369BLE(Context context) {
public BluetoothExcelvanCF36xBLE(Context context) {
super(context);
}
@Override
public String driverName() {
return "Excelvan CF369BLE";
return "Excelvan CF36xBLE";
}
@Override

View File

@@ -45,7 +45,7 @@ public class BluetoothFactory {
return new BluetoothDigooDGSO38H(context);
}
if (name.equals("Electronic Scale".toLowerCase(Locale.US))) {
return new BluetoothExcelvanCF369BLE(context);
return new BluetoothExcelvanCF36xBLE(context);
}
if (name.equals("VScale".toLowerCase(Locale.US))) {
return new BluetoothExingtechY1(context);