This commit is contained in:
wyf
2025-05-23 14:51:09 +08:00
parent 8a418c9c98
commit c650bad8b1
36 changed files with 1297 additions and 892 deletions

View File

@@ -72,7 +72,7 @@ class _WifiPageState extends State<WifiPage> {
}
if (onData.status == BleEventType.ready) {
aa = await getDeviceNetVersion(
blueteethBindController.currentDevice!, 1);
blueteethBindController.currentDevice!, 2);
if (aa == "4g") {
TopSlideNotification.show(
context,
@@ -84,6 +84,12 @@ class _WifiPageState extends State<WifiPage> {
Future.delayed(const Duration(seconds: 1), () {
Get.toNamed("/calibrationPage", arguments: 1);
});
} else if (aa == 'unknown') {
TopSlideNotification.show(
context,
text: "获取设备网络类型失败".tr,
textColor: themeController.currentColor.sc9,
);
} else {
await initWifiStatusAndWifiList();
}
@@ -1020,6 +1026,7 @@ class _WifiPageState extends State<WifiPage> {
text: "4g设备配置wifi提示".tr,
textColor: themeController.currentColor.sc9,
);
Get.back();
});
return;
} else {