Android BLE无法找到设备

时间:2015-04-14 14:02:30

标签: android bluetooth bluetooth-lowenergy

我正在尝试运行Google示例BluetoothLeGatt,当我按下扫描选项时,它根本找不到任何设备。

永远不会调用回调上的onLeScan方法。

我错过了什么吗?

  • 我试过很多设备,从18到21个版本。
  • 未更改任何代码行,只是在Android Studio上导入了示例。
  • 方法startLeScan返回true。
  • 我已尝试增加扫描超时值(SCAN_PERIOD)。

记录(如果找到任何设备,则应在此处显示其mac地址)

 8515-8515/com.example.android.bluetoothlegatt D/BluetoothAdapter? stopLeScan()
 8515-8515/com.example.android.bluetoothlegatt D/BluetoothAdapter? startLeScan(): null
 8515-8528/com.example.android.bluetoothlegatt D/BluetoothAdapter? onClientRegistered() - status=0 clientIf=5
 8515-8515/com.example.android.bluetoothlegatt D/BluetoothAdapter? stopLeScan()

提前致谢。

0 个答案:

没有答案
相关问题