连接到IBeacon的问题 [英] Problems with connecting to IBeacon
问题描述
我正在使用此处中的示例来连接IBeacon.我相信我的UUID是正确的.但是从不调用EventRegionEntered事件,并且DidRangeBeacons事件中的e.Beacons.Length始终为0.
I am using the example from here to connect IBeacon. I believe that my UUID is correct. But the Event RegionEntered is never called and e.Beacons.Length in DidRangeBeacons event is always 0.
locationMgr.DidRangeBeacons += (object sender, CLRegionBeaconsRangedEventArgs e) => {
var a = e.Region;
if (e.Beacons.Length > 0) {
//make notification
}
}
与上述示例的区别在于,我使用IBeacon而不是IPad.
The difference from above mentioned sample is that I use the IBeacon instead of IPad.
推荐答案
Check to be sure you know the ProcimityUUID of your beacon by using the Locate app for iOS. You will need to configure the app with your ProximityUUID.
如果应用程序无法检测到您的信标,则可能是该信标配置错误,或者您可能没有正确的UUID.
If the app will not detect your beacon, the beacon may be misconfigured or you may not have the proper UUID.
编辑:我已在在此处添加了有关如何扫描您的ProximityUUID的说明.
这篇关于连接到IBeacon的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!