使用不同的UUID检测iBeacons [英] Detecting iBeacons with different UUIDs

查看:80
本文介绍了使用不同的UUID检测iBeacons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用UUID作为特定信标的标识符(在这种情况下使用手机)。我知道major和minor用来做这个,但我宁愿使用UUID或标识符字符串。

I'm trying to use UUIDs as identifiers for specific beacons (using phones in this case). I understand that major and minor are used to do this, but I'd rather use the UUID, or the identifier string.

有了这样说,无论如何都有使用CLBeacon API扫描信标而不管UUID?

With that being said, is there anyway to scan for beacons regardless of UUIDs with the CLBeacon API?

推荐答案

在Android上,您可以扫描所有UUID。在iOS上你不能。请参阅:

On Android you can scan for all UUIDs. On iOS you cannot. See:

http://developer.radiusnetworks.com/2013/10/21/corebluetooth-doesnt-let-you-see-ibeacons.html

在iOS上,CoreLocation限制您监控最多20个不同的UUID。测距没有20的限制,但你仍然必须提前知道UUID。

On iOS, CoreLocation limits you to monitoring for at most 20 different UUIDs. Ranging does not have a limit of 20, but you still must know the UUIDs ahead of time.

这篇关于使用不同的UUID检测iBeacons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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