fix(provision): treat WiFi join success by STA state, not internet ping
This commit is contained in:
@@ -124,7 +124,9 @@ class CaptiveServer {
|
||||
// 延迟执行,确保 HTTP 响应送达
|
||||
if (this._onConnect) {
|
||||
setTimeout(() => {
|
||||
this._onConnect(ssid, password || '');
|
||||
Promise.resolve(this._onConnect(ssid, password || '')).catch((e) => {
|
||||
log.error('http', '配网回调异常:', e.message);
|
||||
});
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user