处理636的兼容
This commit is contained in:
@@ -114,51 +114,8 @@ Page({
|
||||
this.setData({
|
||||
initText: "设备搜索中..."
|
||||
});
|
||||
let seviceList = [{
|
||||
"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": 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
|
||||
}];
|
||||
let seviceList = app.globalData.ppScale.device.setting;
|
||||
app.globalData.ppScale.plugin.Blue.setDeviceSetting(seviceList);
|
||||
app.globalData.ppScale.device.setting = seviceList;
|
||||
let deviceNames = seviceList.map(item => item.deviceName);
|
||||
app.globalData.ppScale.plugin.Blue.start(deviceNames, false);
|
||||
app.globalData.ppScale.plugin.bus.subscribe("devicesList", (res) => {
|
||||
|
||||
Reference in New Issue
Block a user