修复wifi配置含中文
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user