- 新增 lefu 服务层(扫描/连接/断开/保活重连/测量回调/WiFi 配网),事件回调支持多监听 - connectedDevice 接入真实蓝牙扫描连接,修复断线重连 UI 未同步、蓝牙/定位开关误判 - connectedWifi 接入真实 WiFi 配网,补连接状态校验与退出配网模式 - 新增 5 张设备图标并调整应用入口 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
46 lines
2.0 KiB
TypeScript
46 lines
2.0 KiB
TypeScript
import type { DeviceSetting } from './types'
|
|
|
|
/** 支持的设备型号配置列表(5款) */
|
|
export const DEVICE_SETTINGS: DeviceSetting[] = [
|
|
{
|
|
advLength: 999, calorieStatus: 0, createBy: null,
|
|
deviceAccuracyType: 2, deviceCalcuteType: 3, deviceConnectType: 2,
|
|
deviceFuncType: 223, deviceName: 'CF568_G', devicePowerType: 3,
|
|
deviceProtocolType: 3, deviceType: 1, deviceUnitType: '0,1,11',
|
|
id: 65, imgUrl: null, macAddressStart: 6, remark: null,
|
|
sign: 'FF', status: 0, uhStatus: 1, updateBy: null,
|
|
},
|
|
{
|
|
advLength: 999, calorieStatus: 0, createBy: null,
|
|
deviceAccuracyType: 2, deviceCalcuteType: 3, deviceConnectType: 2,
|
|
deviceFuncType: 223, deviceName: 'YX-B4-568-BW', devicePowerType: 3,
|
|
deviceProtocolType: 3, deviceType: 1, deviceUnitType: '0,1,11',
|
|
id: 65, imgUrl: null, macAddressStart: 6, remark: null,
|
|
sign: 'FF', status: 0, uhStatus: 1, updateBy: null,
|
|
},
|
|
{
|
|
advLength: 999, calorieStatus: 0, createBy: null,
|
|
deviceAccuracyType: 2, deviceCalcuteType: 4, deviceConnectType: 2,
|
|
deviceFuncType: 65759, deviceName: 'CF636_G', devicePowerType: 3,
|
|
deviceProtocolType: 3, deviceType: 1, deviceUnitType: '0,1,2',
|
|
id: 216, imgUrl: null, macAddressStart: 6, remark: null,
|
|
sign: 'FF', status: 0, uhStatus: 1, updateBy: null,
|
|
},
|
|
{
|
|
advLength: 999, calorieStatus: 0, createBy: null,
|
|
deviceAccuracyType: 2, deviceCalcuteType: 4, deviceConnectType: 2,
|
|
deviceFuncType: 65759, deviceName: 'YX-B8-636-BW', devicePowerType: 3,
|
|
deviceProtocolType: 3, deviceType: 1, deviceUnitType: '0,1,2',
|
|
id: 216, imgUrl: null, macAddressStart: 6, remark: null,
|
|
sign: 'FF', status: 0, uhStatus: 1, updateBy: null,
|
|
},
|
|
{
|
|
advLength: 999, calorieStatus: 0, createBy: null,
|
|
deviceAccuracyType: 2, deviceCalcuteType: 4, deviceConnectType: 2,
|
|
deviceFuncType: 223, deviceName: 'CF577', devicePowerType: 3,
|
|
deviceProtocolType: 3, deviceType: 1, deviceUnitType: '0,1,11',
|
|
id: 51, imgUrl: null, macAddressStart: 6, remark: null,
|
|
sign: 'FF', status: 0, uhStatus: 1, updateBy: null,
|
|
},
|
|
]
|