iPhone 接近检测

发布于 2024-09-24 19:54:22 字数 181 浏览 2 评论 0原文

我正在尝试找到一种方法来检测某些 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疏忽 2024-10-01 19:54:22

您不需要通过蓝牙配对来确定距离。搜索设备只会返回您附近的设备(由于 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文