Browse Source

优化 蓝牙设备列表提示

feat-bluetooth
chenJinxu 6 months ago
parent
commit
57c47ef680
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      miniprogram/pages/bluetooth/bluetooth.js

+ 4
- 4
miniprogram/pages/bluetooth/bluetooth.js View File

@@ -3,11 +3,11 @@ const plugin = requirePlugin('ppScale-plugin')
var app = getApp(); var app = getApp();
Page({ Page({
data: { data: {
deviceslist: [{
deviceslist: [/* {
name: "LFSmart Scale", name: "LFSmart Scale",


deviceId: "CF:E6:16:22:82:28" deviceId: "CF:E6:16:22:82:28"
}],
} */],


}, },
onHide() { onHide() {
@@ -62,9 +62,9 @@ Page({
}, },
initBlue() { initBlue() {
let that = this; let that = this;
/* that.setData({
that.setData({
deviceslist: '' deviceslist: ''
}) */
})
console.log("初始化蓝牙"); console.log("初始化蓝牙");
wx.openBluetoothAdapter({ wx.openBluetoothAdapter({
mode: 'peripheral', mode: 'peripheral',


Loading…
Cancel
Save