更新用户信息 同步
This commit is contained in:
@@ -55,12 +55,10 @@ Page({
|
||||
app.globalData.ppScale.plugin.Blue.setDeviceSetting(seviceList);
|
||||
app.globalData.ppScale.plugin.Blue.start(seviceList[0].deviceName, false);
|
||||
app.globalData.ppScale.plugin.bus.subscribe("devicesList", (res) => {
|
||||
console.log("deviceInfo ===> devicesList", res);
|
||||
let fIndex = res.findIndex(item => item.deviceId === this.data.deviceInfo.deviceId);
|
||||
if (fIndex >= 0) {
|
||||
if (fIndex > -1) {
|
||||
app.globalData.ppScale.plugin.Blue.stopBluetoothDevicesDiscovery();
|
||||
app.globalData.ppScale.plugin.Blue.createBLEConnection(res[fIndex]);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user