diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java index 31d6e00e..e994a870 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java @@ -58,7 +58,7 @@ public class BluetoothFactory { } // BS444 || BS440 if (deviceName.startsWith("013197") || deviceName.startsWith("0202B6")) { - return new BluetoothMedisanaBS444(context); + return new BluetoothMedisanaBS44x(context); } if (deviceName.startsWith("SWAN") || name.equals("icomon".toLowerCase(Locale.US))) { return new BluetoothMGB(context); diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMedisanaBS444.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMedisanaBS44x.java similarity index 97% rename from android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMedisanaBS444.java rename to android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMedisanaBS44x.java index 7840a74f..f80ae6bb 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMedisanaBS444.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMedisanaBS44x.java @@ -25,7 +25,7 @@ import com.health.openscale.core.utils.Converters; import java.util.Date; import java.util.UUID; -public class BluetoothMedisanaBS444 extends BluetoothCommunication { +public class BluetoothMedisanaBS44x extends BluetoothCommunication { private final UUID WEIGHT_MEASUREMENT_SERVICE = UUID.fromString("000078b2-0000-1000-8000-00805f9b34fb"); private final UUID WEIGHT_MEASUREMENT_CHARACTERISTIC = UUID.fromString("00008a21-0000-1000-8000-00805f9b34fb"); // indication, read-only private final UUID FEATURE_MEASUREMENT_CHARACTERISTIC = UUID.fromString("00008a22-0000-1000-8000-00805f9b34fb"); // indication, read-only @@ -39,7 +39,7 @@ public class BluetoothMedisanaBS444 extends BluetoothCommunication { // Scale time is in seconds since 2010-01-01 private static final long SCALE_UNIX_TIMESTAMP_OFFSET = 1262304000; - public BluetoothMedisanaBS444(Context context) { + public BluetoothMedisanaBS44x(Context context) { super(context); btScaleMeasurement = new ScaleMeasurement(); }