fix(provision): treat WiFi join success by STA state, not internet ping

This commit is contained in:
stswangzhiping
2026-03-29 07:10:43 +08:00
parent 2ec02d71bb
commit 012ad90335
3 changed files with 33 additions and 11 deletions

View File

@@ -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) {