【发布时间】:2011-04-07 04:47:07
【问题描述】:
我想用蓝牙做以下事情。
- 测量并显示我的 iPhone 与另一部 iPhone 的距离。
- 我的 iPhone 的显示方向。
例如,
我想在我的 iPhone 应用程序上显示以下内容。
我的 iPhone 已连接到另一部 iPhone:Harry 的 iPhone。
在这种情况下,
- 距离:3m 45.3cm(精度:毫米)
- 方向:东北(8 个可用方向之一)
有人知道怎么做吗?
【问题讨论】:
-
为了计算两台设备之间的距离,难道不能进行某种ping,计算得到响应所需的时间吗?
标签: iphone cocoa-touch xcode bluetooth