搜索所有iBeacons而不仅仅是特定的UUID [英] Search for all iBeacons and not just with specific UUID

查看:82
本文介绍了搜索所有iBeacons而不仅仅是特定的UUID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以搜索附近的所有 iBeacons ?我知道可以通过UUID搜索 iBeacons 。但我想在附近找到所有 iBeacons

Is it possible to search for all iBeacons which are nearby? I know it's possible to search iBeacons by UUID. But i want to find all iBeacons nearby.

推荐答案

iBeacon是一个区域,具有UUID的定义属性。因此,您只能搜索与UUID匹配的那些。
在找到具有特定UUID的一个或多个后,您可以使用委托回调找出哪个最接近,其中信标存储在按距离排序的数组中。

An iBeacon is a region, and has as defining property the UUID. Therefore, you can only search for the ones matching a UUID. After you find one or more with a specific UUID, you can figure out which is closest using the delegate callbacks, where the beacons are stored in an array ordered by distance.

这里有很好的示例代码,还有一个非常详细的WWDC视频会话:核心位置有什么新内容

There is great sample code on this and also a pretty detailed WWDC video session: "What's new in Core Location"

这篇关于搜索所有iBeacons而不仅仅是特定的UUID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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