打开蓝牙时,如何设置其他 ios 设备可见的 ios 设备(iphone 和 ipad)蓝牙?当所有设备的蓝牙打开时,我只想在我的应用程序中获取并显示附近的所有 ios 设备的名称(包括 MFI 设备),并且我还想获取设备的 deviceID。我已经成功使用 GameKit.framework 通过蓝牙连接两个 ios 设备,但这需要两个设备一起运行该应用程序。有人可以为我提供有关如何实施它的建议吗?非常感谢!
问问题
1574 次
2 回答
1
我自己还没有工作,我知道在这里提供链接不好。但希望这些链接能让你开始你自己:
http ://www.touchthatfruit.com/ios-bluetooth-development-tutorial -使用游戏
http://vivianaranha.com/apple-gamekit-bluetooth-integration-tutorial/
http://www.devx.com/wireless/Article/43502/0/page/1
很高兴能帮助你
于 2012-04-23T06:20:53.313 回答
0
我不确定你在问什么。打开设备的蓝牙是不够的。设备需要为对等方进行广告才能检测到它。我认为这可能与您正在尝试做的事情有关:http ://www.ralfebert.de/tutorials/ios-swift-multipeer-connectivity/ 。
我尝试了本教程,它非常有帮助。它使用 Multipeer Connectivity 来宣传和浏览周围的同行。它还会显示您周围设备的 deviceID。
于 2015-07-06T17:55:23.887 回答