所以我阅读了对此事的不同看法(我想我阅读了关于 SO 的所有相关问题)。我可以在 PAN 中连接 - 我可以编写一个应用程序来连接 - 我的 linux 机器和我的 iOS 设备通过蓝牙吗?使用或不使用 Bonjour 或 GameKit。
一些必要条件:
- iOS 设备未越狱。
- iOS 设备可能启用也可能未启用热点/网络共享功能(据我所知,这是由宽带提供商决定的——也就是说,如果您付费,就可以共享您的连接)。
- iOS 可以运行使用文档化 API 的定制应用。
- 蓝牙可由 iOS 设备用户手动激活。
非常感谢!
最佳答案
iOS 3.0 provides support for headsets (mono/stereo), networking via the PAN/BNEP protocol and support for "Made for iPhone" devices which require a proprietary Bluetooth protocol. Still, not even basic OBEX support is included (available with any low-price mobile phone), and no API is available to connect to arbitrary Bluetooth devices. It also extents the GameKit API to allow for iOS-to-iOS communication.
就我个人而言,我会改用 wifi + bonjour。 Here's a tutorial about implementing it,一些代码可能非常粗糙,但一旦您将样板文件移开,它就会“正常工作”,这总是让人感觉良好的时刻。
关于ios - PAN 与 Linux、iOS、蓝牙、Bonjour、GameKit——可能吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7251023/