fix(provision): treat WiFi join success by STA state, not internet ping
This commit is contained in:
@@ -163,6 +163,9 @@ class ProvisionManager extends EventEmitter {
|
||||
|
||||
this._stopAPServices();
|
||||
|
||||
// 关热点后射频/模式切换需要时间,立刻 connect 在部分板子上会失败
|
||||
await new Promise((r) => setTimeout(r, 2500));
|
||||
|
||||
const result = connectWifi(ssid, password);
|
||||
|
||||
if (result.success) {
|
||||
|
||||
Reference in New Issue
Block a user