[AI Generated]: fix(*): 移除废弃 WifiVersion 类型、修复 connectedWifi 事件绑定及升级 ppScale-plugin 至 0.0.25
This commit is contained in:
@@ -4,7 +4,6 @@ export type {
|
||||
LeFuWifiItem,
|
||||
ProgressData,
|
||||
LockData,
|
||||
WifiVersion,
|
||||
LeFuConfig,
|
||||
DeviceSetting,
|
||||
DeviceMember,
|
||||
|
||||
@@ -6,7 +6,6 @@ import type {
|
||||
LeFuWifiItem,
|
||||
ProgressData,
|
||||
LockData,
|
||||
WifiVersion,
|
||||
LeFuConfig,
|
||||
DeviceSetting,
|
||||
DeviceMember,
|
||||
@@ -204,6 +203,8 @@ class LeFuService {
|
||||
plugin.Blue.setDeviceSetting(DEVICE_SETTINGS)
|
||||
this._subscribeBus()
|
||||
plugin.Blue.stopBluetoothDevicesDiscovery()
|
||||
// 0.0.25 新增:重新连接前必须清除协议缓存
|
||||
plugin.Blue.clearProtocol()
|
||||
plugin.Blue.createBLEConnection(rawDevice)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ export type RawDevice = Record<string, any>
|
||||
/** 乐福 SDK 插件对象(运行时由 requirePlugin 注入) */
|
||||
export type LeFuPlugin = Record<string, any>
|
||||
|
||||
/** WiFi 配网协议版本 */
|
||||
export type WifiVersion = 'domain1' | 'domain2'
|
||||
|
||||
/** 设备配置(来自 master device.setting 列表) */
|
||||
export interface DeviceSetting {
|
||||
|
||||
Reference in New Issue
Block a user