在iOS中可用的蓝牙设备的列表获取 [英] Getting list of available bluetooth devices in ios

查看:1647
本文介绍了在iOS中可用的蓝牙设备的列表获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来在iOS可用的蓝牙设备的MAC地址列表?我正在这附近发现使用蓝牙MAC地址的人PROGRAMM。

Is there a way to get list of mac addresses of available bluetooth devices in ios? I'm working on a programm which finds people nearby using bluetooth mac addresses.

推荐答案

这一般是不可能的,因为iOS不暴露蓝牙地址的应用程序。

It is generally not possible, as iOS does not expose the Bluetooth address to the app.

如果您正在使用非iOS的蓝牙外设,可以手动包含BD_ADDR到的厂商信息的广告数据的领域。 iOS版公开这家制造商的信息,你可以从那里得到BD_ADDR。

If you are using non-iOS Bluetooth peripherals, you can manually include the BD_ADDR into the Manufacturer Info field of the advertising data. iOS exposes this manufacturer info, and you can get the BD_ADDR from there.

有关许多使用情况下,这iOS的产生用于每个设备的UUID是足够的。如果你能提供更多的细节(可能在后续问题),有可能是一个很好的机会,一个解决方案,可以发现,这并不需要此解决办法。

For many use cases, the UUID that iOS generates for each device is sufficient. If you could provide more details (possibly in a follow-up question), there may be a good chance that a solution can be found that does not need this workaround.

这篇关于在iOS中可用的蓝牙设备的列表获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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