平安从Android设备蓝牙设备 [英] Ping a Bluetooth device from an Android device

查看:113
本文介绍了平安从Android设备蓝牙设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如果考虑到其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.

这篇关于平安从Android设备蓝牙设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆