Browse Source

移除IBP设备名称过滤

xiaohaizhao 7 months ago
parent
commit
0610fdba46
1 changed files with 1 additions and 6 deletions
  1. 1 6
      Bluetooth/index/index.vue

+ 1 - 6
Bluetooth/index/index.vue

@@ -119,12 +119,7 @@ export default {
     startBluetooth(services = []) {
       let that = this;
       uni.onBluetoothDeviceFound(function ({ devices }) {
-        try {
-          if (devices[0].name.includes("IBP")) {
-            console.log("IBP开头的蓝牙设备", devices[0]);
-            that.devices = that.devices.concat(devices);
-          }
-        } catch (error) {}
+		that.devices = that.devices.concat(devices);
         that.empty = that.devices.length == 0;
       });
       uni.startBluetoothDevicesDiscovery({