简体   繁体   English

为什么Java TinyB没有看到hcitool所做的相同设备?

[英]How come Java TinyB does not see the same devices hcitool does?

I want to write a Java app that scans for a specific BLE device. 我想编写一个扫描特定BLE设备的Java应用程序。 I decided to use TinyB library and start with testing some examples. 我决定使用TinyB库并开始测试一些例子。

Unfortunately, these do not see my device (it does not show up in BluetoothManager.getDevices() ) even though hcitool lescan shows it. 不幸的是,即使hcitool lescan显示它,它们也看不到我的设备(它没有显示在BluetoothManager.getDevices() )。 Examples can detect my phone, so it looks like library works, but not for BLE devices. 示例可以检测到我的手机,因此它看起来像库工作,但不适用于BLE设备。

How do I make it find the same devices hcitool does? 如何让它找到hcitool所用的相同设备? Maybe I should use some other library? 也许我应该使用其他一些图书馆?

我想我将轮询hcitool lescan并发送我的应用程序是否找到设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM