使用蓝牙API无法扫描到周边蓝牙设备,请问那里弄错了,或者漏了吗? 操作步骤如下
- wx.openBluetoothAdapter
返回 {openBluetoothAdapter:ok}
2. wx.getBluetoothAdapterState
返回 {
available: true,
discovering: false,
getBluetoothAdapterState: ok
}
- wx.startBluetoothDevicesDiscovery
返回 {
available: true,
isDiscovering: true,
startBluetoothDevicesDiscovery: ok
}
- wx.onBluetoothAdapterStateChange
返回 {
available: true,
discovering: true
}
- wx.getBluetoothDevices
返回 {
getBluetoothDevices: ok,
devices: []
}
- wx.getBluetoothAdapterState
返回 {
available: true,
discovering: false,
getBluetoothAdapterState: ok
}