While recording: show BLE sensor name instead of address.

Fixes #1796.
This commit is contained in:
Dennis Guse
2023-12-26 11:22:05 +01:00
parent 81a78820cc
commit 8f5388edce
13 changed files with 14 additions and 34 deletions
@@ -139,11 +139,11 @@ public class BluetoothConnectionManager {
bluetoothGatt = device.connectGatt(context, false, connectCallback, BluetoothDevice.TRANSPORT_AUTO, 0, handler);
observer.onConnect(sensorHandler.createEmptySensorData(bluetoothGatt.getDevice().getAddress()));
observer.onConnect(sensorHandler.createEmptySensorData(device.getAddress(), device.getName()));
}
private synchronized void clearData() {
observer.onDisconnect(sensorHandler.createEmptySensorData(bluetoothGatt.getDevice().getAddress()));
observer.onDisconnect(sensorHandler.createEmptySensorData(bluetoothGatt.getDevice().getAddress(), bluetoothGatt.getDevice().getName()));
}
synchronized void disconnect() {