ios - 蓝牙信号弱 iOS

标签 ios bluetooth bluetooth-lowenergy

有没有办法从 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/

相关文章:

iphone - NSMutableArray 和 NSPredicate 过滤

java - 如何使用android ble接口(interface)作为结构发送uint8和uint32数据

iPhone :- Scroll down automatically on button click

ios - AV Foundation 错误地报告播放器项目持续时间

ios - 如何在 ios 7 的 "more"uitableview 中更改图标的灰色?

iOS蓝牙设备在输入错误密码后无法取消配对或忘记

c++ - Windows mobile和蓝牙编程SDK下载

android - BroadcastReceiver 从未调用过

android - mBluetoothGatt.getService(uuid) 返回 null

xamarin - 蓝牙 LE 未检测到设备