如何使用蓝牙连接两部 iPhone? [英] How to use bluetooth to connect two iPhone?

查看:22
本文介绍了如何使用蓝牙连接两部 iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用iPhone SDK来实现两台iPhone之间的蓝牙连接,但是我在iPhone SDK 3.0中没有找到任何蓝牙API.有谁能够帮我?谢谢.

I want to use iPhone SDK to implement a bluetooth connection between two iPhones, but I don't find any bluetooth API in iPhone SDK 3.0. Can anybody help me? Thanks.

顺便说一句:是否可以使用蓝牙同时连接两部以上的 iPhone?

BTW: Is it possible to connect more than two iPhones at the same time by using bluetooth?

推荐答案

您可以使用高级 GameKit 框架 或较低级别的(但仍然易于使用)Bonjour 发现机制.Bonjour 在 3.0 下的 iPhone 上也可以在蓝牙和 WiFi 之间透明地工作,因此如果您想在这两种类型的网络上支持 iPhone 到 iPhone 的数据传输,它是一个不错的选择.

You can connect two iPhones and transfer data via Bluetooth using either the high-level GameKit framework or the lower-level (but still easy to work with) Bonjour discovery mechanisms. Bonjour also works transparently between Bluetooth and WiFi on the iPhone under 3.0, so it's a good choice if you would like to support iPhone-to-iPhone data transfers on those two types of networks.

有关更多信息,您还可以查看对这些问题的回答:

For more information, you can also look at the responses to these questions:

这篇关于如何使用蓝牙连接两部 iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆