更新小e
This commit is contained in:
@@ -82,8 +82,10 @@ Future<bool> sendWifiSetting(wifiItem, String password, THapp tHapp) async {
|
||||
try {
|
||||
edm.EasyDartModule.logger.info("发送wifi配置指令");
|
||||
DailyLogUtils.writeLog("发送wifi配置指令->");
|
||||
// String cmd = "vtouch save update -a -i .wifi.sta.auth=${wifiItem['auth']} "
|
||||
// ".wifi.sta.ssid=${wifiItem['ssid']} .wifi.sta.pwd=$password";
|
||||
String cmd = "vtouch save update -a -i .wifi.sta.auth=${wifiItem['auth']} "
|
||||
".wifi.sta.ssid=${wifiItem['ssid']} .wifi.sta.pwd=$password";
|
||||
".wifi.sta.ssid=\"${wifiItem['ssid']}\" .wifi.sta.pwd=\"$password\"";
|
||||
final success = await tHapp.send(cmd, true, (log) {
|
||||
if (log.log.contains("update parm is successful")) {
|
||||
print("[wifi456]:" + log.log);
|
||||
@@ -189,7 +191,7 @@ Future<String> getDeviceNetVersion(THapp tHapp, int times) async {
|
||||
}
|
||||
ss.over = false;
|
||||
return false;
|
||||
}, times,15000);
|
||||
}, times, 15000);
|
||||
|
||||
return netType;
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user