更新设备控制

This commit is contained in:
wyf
2025-06-21 08:49:40 +08:00
parent b449f83cb0
commit d94a0c8a6c
6 changed files with 465 additions and 366 deletions

View File

@@ -218,6 +218,10 @@ class MHTBlueToothController extends GetControllerEx<MHTBlueToothModel> {
"macA": bleDevice.macA,
if (bleDevice.macB != null && bleDevice.macB!.isNotEmpty)
"macB": bleDevice.macB,
if (bleDevice.name!=null && bleDevice.name!.isNotEmpty)
'param':{
'name':bleDevice.name,
},
};
var response =

View File

@@ -1,7 +1,7 @@
import 'package:flutter_blue_plus/flutter_blue_plus.dart';
class BlueToothDataModel {
String name;
String name;//设备型号
bool bind;
String mac;
ScanResult scanResult;