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:
@@ -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
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user