更新ios蓝牙连接

This commit is contained in:
wyf
2025-08-21 17:25:49 +08:00
parent e406ac46be
commit f21f75d5e4

View File

@@ -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");
}
}