|
@@ -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({
|