更新ios蓝牙连接
This commit is contained in:
@@ -989,8 +989,9 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
||||
}
|
||||
return result.device.remoteId.str.toUpperCase();
|
||||
}
|
||||
}
|
||||
|
||||
void advertisDataFormatter(var a, item) {
|
||||
void advertisDataFormatter(var a, item) {
|
||||
Map<String, dynamic> obj = {};
|
||||
try {
|
||||
if (a[2] == 1) {
|
||||
@@ -1069,17 +1070,16 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool isQuanShiDevice(name) {
|
||||
bool isQuanShiDevice(name) {
|
||||
return "$name".contains("S4-ZM-M94-4") ||
|
||||
"$name".contains("S4-ZM-N94-4") ||
|
||||
"$name".contains("MHT-SWES-D");
|
||||
}
|
||||
}
|
||||
|
||||
bool isMHTSWES(name) {
|
||||
bool isMHTSWES(name) {
|
||||
return "$name".contains("MHT-") ||
|
||||
"$name".contains("MHT-SWES-M") ||
|
||||
"$name".contains("MHT-SWES-S");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user