如何扫描在Android的范围内可用的蓝牙设备? [英] How to scan for available bluetooth devices in range in android?

查看:163
本文介绍了如何扫描在Android的范围内可用的蓝牙设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要采用谷歌Android 2.1来获得在该地区可用的蓝牙设备的列表。

I need to get a list of available bluetooth devices in the area using google android 2.1.

事情是,我不只是需要那些设备的列表,我需要一些独特的ID为发现的每个设备,我需要一个指标,信号如何好接受(如在Android上的级别。 wifi.ScanResult)......我该怎么办呢?

Thing is, i don't just need a list of those devices, i need some unique id for each device found and i need an indicator, how "good" the signal is received (like the "level" in android.wifi.ScanResult)... How do i do that?

推荐答案

这里有一个完整的例子来发现设备。

Here there is a complete example to discover devices.

您可以使用MAC地址作为唯一的ID。

You could use the MAC address as unique ID.

关于信号强度,我认为你应该使用 RSSI (接收信号强度指示器)。

About signal strength i think you should use RSSI (Received Signal Strength Indicator).

这篇关于如何扫描在Android的范围内可用的蓝牙设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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