fix(pairing): pairing flow preempt status read fix
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:abawo_bt_app/controller/bluetooth.dart';
|
||||
import 'package:abawo_bt_app/database/database.dart';
|
||||
import 'package:abawo_bt_app/model/bluetooth_device_model.dart';
|
||||
@ -92,14 +90,6 @@ class _ConnectDevicePageState extends ConsumerState<ConnectDevicePage> {
|
||||
|
||||
switch (res) {
|
||||
case Ok():
|
||||
if (!Platform.isAndroid) {
|
||||
controller.readCharacteristic(
|
||||
device.id,
|
||||
'0993826f-0ee4-4b37-9614-d13ecba4ffc2',
|
||||
'0993826f-0ee4-4b37-9614-d13ecba40000',
|
||||
);
|
||||
}
|
||||
|
||||
final notifier = ref.read(nConnectedDevicesProvider.notifier);
|
||||
final name = device.name.isNotEmpty ? device.name : 'Unknown Device';
|
||||
final deviceCompanion = ConnectedDevicesCompanion(
|
||||
|
||||
Reference in New Issue
Block a user