Android蓝牙广播通过UUID搜索

代码实现

UUID u1 = UUID.fromString("f3930000-e50e-24dc-ca9e-075629323000");
UUID u2 = UUID.fromString("f3930000-e50e-24dc-ca9e-1DD0ED902E00");
UUID[] myUUID ={u1,u2};
mBluetoothAdapter.startLeScan( myUUID, mLeScanCallback );

报错信息

D/BluetoothAdapter: uuids does not match
D/BluetoothAdapter: uuids does not match
D/BluetoothAdapter: uuids does not match
D/BluetoothAdapter: uuids does not match
D/BluetoothAdapter: uuids does not match
D/BluetoothAdapter: uuids does not match

蓝牙搜索的分别单个搜索都有数据,放在一个数组搜索就报错了....## 标题文字 ##

阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题