有没有办法从 iPhone 生成非常低能量的蓝牙信号,以便另一台设备只有在非常靠近发射设备时才能检测到该信号?也许使用 iBeacon 技术? What is the iBeacon Bluetooth Profile
最佳答案
您可以使用 CoreLocation
iBeacon 来做到这一点。 See this tutorial on how to setup your device as a broadcasting iBeacon.在搜索它的设备中,您可以监控 RSSI
值以确定您的距离。
正如您在教程中看到的那样,CoreLocation
为您提供了城市中广播设备的 CLBeacon
对象。然后,如果您想要 Apple 定义的距离,您可以访问它们的 proximity
属性:
typedef {
CLProximityUnknown,
CLProximityImmediate,
CLProximityNear,
CLProximityFar
} CLProximity;
关于ios - 蓝牙信号弱 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24637837/