iPhone 接近检测
我正在尝试找到一种方法来检测某些 iPhone 设备何时靠近另一台设备(可能是另一台 iPhone、PC 或其他类型的传感器/设备)。
有人知道这是如何实现的吗?我想过蓝牙的方向,但据我了解 - 之前必须进行一些配对。这可以在不配对的情况下完成吗?如果是这样,我怎样才能专门识别被检测到的iPhone?
谢谢, 罗马
I'm trying to find a way to detect when some iPhone device is near another device (which could be another iPhone, a PC or another kind of sensor/device).
Anyone knows how this could be accomplished? I've thought in the direction of bluetooth, but as I understand - some pairing must be done before. Can this be accomplished without pairing? if so, how can I identify exclusively the iPhone being detected?
Thanks,
Roman
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要通过蓝牙配对来确定距离。搜索设备只会返回您附近的设备(由于 BT 范围有限)。
如果您想与这个新发现的设备进行通信,情况会稍微复杂一些 - 但只需检测附近是否有其他设备启用了 BT 扫描就足够了。
You don't need pairing to determine proximity through Bluetooth. Searching for devices will only return the devices in your vicinity (due to the limited range of BT).
If you then want to communicate with this newly discovered device, it is slightly more complicated - but to just detect if there is other devices with BT enabled near-by scanning is enough.