Android的文档中提到:
Note: You can only scan for Bluetooth LE devices or scan for Classic Bluetooth devices, as described in Bluetooth. You cannot scan for both Bluetooth LE and classic devices at the same time.
然而我注意到调用mBtAdapter.startDiscovery();后返回的是经典蓝牙和BLE设备。有没有人知道这里哪个是正确的?
startDiscovery()
可以找到 BLE 设备,但是startLeScan()
更可靠地找到它们。 - ThomasW