如何扫描在Android的范围内可用的蓝牙设备?蓝牙、范围内、设备、Android

由网友(Spexial丶发飙)分享简介:我需要采用谷歌Android 2.1来获得在该地区可用的蓝牙设备的列表。I need to get a list of available bluetooth devices in the area using google android 2.1.事情是,我不只是需要那些设备的列表,我需要一些独特的ID为发现的每...

我需要采用谷歌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).

阅读全文

相关推荐

最新文章