- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
wx.openBluetoothAdapter({
success(res) {
console.log(res)
wx.showLoading({
title: ‘正在搜索设备…’,
mask: true
});
wx.startBluetoothDevicesDiscovery({
interval: '0',
success: function (res) {
console.log('找到设备', res)
wx.getBluetoothDevices({
success: function (res) {
console.log('getBluetoothDevices', res);
},
fail: function (res) {
console.log('getBluetoothDevices 失败', res)
}
})
},
fail: function (res) {
console.log('未找到设备', res)
}
})
}
})