平安从Android设备蓝牙设备蓝牙、设备、平安、Android

2023-09-07 09:19:27 作者:午夜第一根烟

我想知道,如果考虑到其MAC地址的蓝牙设备可用(上伸手可及)或不。有点像平,一些快速的方法。

I would like to know if a Bluetooth device given its MAC address is available (on and within reach) or not. Something like a ping, some quick method.

我试图通过尝试建立连接来检查,但它需要长达12秒。你知道有更快的方法?

I tried to check by trying to establish a connection but it takes up to 12 seconds. Do you know any faster way?

推荐答案

如果您正在寻找被发现,然后做一个设备发现该设备可能是最有效的。

If the device you are looking for is discoverable then doing a device discovery is probably the most efficient.