修复wifi配置含中文

This commit is contained in:
wyf
2025-10-14 10:21:37 +08:00
parent 02fe46b674
commit d7f1b78404
11 changed files with 108 additions and 52 deletions

View File

@@ -968,6 +968,10 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
// 连接设备
// await targetDevice.device.connect();
THapp bledevice = THapp(device: targetDevice.device);
bledevice.logingStream.listen((event) {
edm.EasyDartModule.logger.info("[wifi配置]:" + event);
print("[bleeeee]:" + event);
});
await bledevice.device.connect();
var res2 = bledevice.isConnected;
if (res2) {
@@ -1021,6 +1025,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
fontSize: AppConstants().title_text_fontSize),
));
// return;
await initWifiStatusAndWifiList();
} else if (aa == 'unknown') {
blueteethBindController.netType.value = 3;
blueteethBindController.updateAll();
@@ -1032,6 +1037,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
textColor: themeController.currentColor.sc9,
);
});
await initWifiStatusAndWifiList();
} else {
blueteethBindController.netType.value = 1;
blueteethBindController.updateAll();