Iphone – How to use bluetooth to connect two iPhone

bluetoothiphone

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.

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

Best Answer

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: