feat: skip WS in AP+no-internet, poll every 5s until network available
Made-with: Cursor
This commit is contained in:
@@ -112,7 +112,7 @@ class ProvisionManager extends EventEmitter {
|
||||
if (this._state === 'ap') return;
|
||||
|
||||
led.off(); // AP 模式:WiFi 未连接,灭灯
|
||||
led.display.showAP(); // AP 模式:VFD 显示 AP
|
||||
if (!hasInternet()) led.display.showAP(); // 无网时立即显示 AP,有线时等 WS 连接后再定
|
||||
|
||||
try {
|
||||
// AP 模式下无法扫描 WiFi,必须在开 AP 之前扫描并缓存
|
||||
|
||||
Reference in New Issue
Block a user