修复蓝牙扫描界面不自动扫描的bug
This commit is contained in:
@@ -189,6 +189,7 @@ class MHTBlueToothController extends GetControllerEx<MHTBlueToothModel> {
|
||||
return res;
|
||||
} else {
|
||||
model.deviceDataStatus = [];
|
||||
return ApiResponse(code:1, msg: "".tr);
|
||||
}
|
||||
} catch (e) {
|
||||
print("获取设备状态异常: $e");
|
||||
@@ -218,10 +219,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,
|
||||
},
|
||||
if (bleDevice.name != null && bleDevice.name!.isNotEmpty)
|
||||
'param': {
|
||||
'name': bleDevice.name,
|
||||
},
|
||||
};
|
||||
|
||||
var response =
|
||||
@@ -237,8 +238,8 @@ class MHTBlueToothController extends GetControllerEx<MHTBlueToothModel> {
|
||||
// personController.currentPersonId.value = res.data['id'];
|
||||
//todo 绑定成功需要返回传感器id
|
||||
currentDeviceMac.value = "";
|
||||
if(res.data!=null){
|
||||
if(currentFullDevice!=null){
|
||||
if (res.data != null) {
|
||||
if (currentFullDevice != null) {
|
||||
currentFullDevice!.macAID = res.data['macA'];
|
||||
currentFullDevice!.macBID = res.data['macB'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user