Browse Source

上传ble蓝牙连接代码

weicu
liwei1dao 1 year ago
parent
commit
0201a7d637
  1. 3
      lib/modules/pairing/controllers/pairing_controller.dart

3
lib/modules/pairing/controllers/pairing_controller.dart

@ -493,7 +493,8 @@ class PairingController extends GetxController {
Logger.i(_tag, '已关联的MAC地址: $pairedMacAddress');
if (pairedMacAddress != null &&
pairedMacAddress.toUpperCase() == device.address.toUpperCase()) {
pairedMacAddress.toUpperCase() ==
_verifiedDeviceAddress?.toUpperCase()) {
// 已有关联,检查BLE连接状态
Logger.i(_tag, '设备已关联,检查BLE连接状态');
final currentBleState = await _bleManager.getConnectionState();

Loading…
Cancel
Save