【发布时间】:2014-07-08 17:14:41
【问题描述】:
有没有办法从 iPhone 生成非常低能量的蓝牙信号,以便其他设备只有在非常靠近发射设备时才能检测到该信号?也许使用 iBeacon 技术? What is the iBeacon Bluetooth Profile
【问题讨论】:
标签: ios bluetooth bluetooth-lowenergy
有没有办法从 iPhone 生成非常低能量的蓝牙信号,以便其他设备只有在非常靠近发射设备时才能检测到该信号?也许使用 iBeacon 技术? What is the iBeacon Bluetooth Profile
【问题讨论】:
标签: ios bluetooth bluetooth-lowenergy
您可以使用CoreLocation iBeacons 执行此操作。 See this tutorial on how to setup your device as a broadcasting iBeacon. 在搜索它的设备中,您可以监控RSSI 值以确定您的距离。
正如您在教程中看到的那样,CoreLocation 为您提供CLBeacon 附近的广播设备对象。然后,如果您想要 Apple 定义的距离,您可以访问他们的 proximity 属性:
typedef {
CLProximityUnknown,
CLProximityImmediate,
CLProximityNear,
CLProximityFar
} CLProximity;
【讨论】:
RSSI,这只是信号强度。它可能会受到墙壁、人、玻璃等的影响。要回答您的问题,无法获得确切的距离。