feat(device): 连接设备后订阅设备信息并绑定 SN 到用户

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-24 15:31:46 +08:00
co-authored by Claude Sonnet 4.6
parent e25e797b35
commit 17113759b8
2 changed files with 38 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ class LeFuService {
get BLUE_STATE(): Record<string, string> { return plugin.BLUE_STATE ?? {} }
/** 设备固件信息 */
get deviceInfo(): DeviceInfo | null { return this._deviceInfo }
/** 最近一次连接/扫描到的原始设备 */
get lastRawDevice(): RawDevice | null { return this._lastRawDevice }
// ─── 事件回调注册(均返回反注册函数) ───────
/** 订阅「扫描结果列表」事件 */