Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bluetooth peer to peer networking APIs iOS [closed]

G'Day programmers...I am planning to make an application which will be using peer to peer bluetooth connection between two different iOS device.

So my question is, is there any good tutorials which can guide me through?

Purpose is to send a stream of strings, like in chat application.

I want to learn so you may give me a direction something like,

"Hey check this, XYZ API they intent to do what you are looking for..." Or "There is a tutorial ..."

Thank you for any kind of help!


Research So far :

  • Below link is about networking through wifi but not bluetooth

http://jens.mooseyard.com/2009/05/a-bonjour-chat-tutorial-for-iphone-developers/

  • This link is promising, but could not find any relevant tutorial. Does anyone know a link which has tutorial for this?

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html#//apple_ref/doc/uid/TP40008304-CH100-SW1

like image 817
TeaCupApp Avatar asked Oct 11 '11 22:10

TeaCupApp


People also ask

What is peer to peer on iPhone?

Here, the app uses Apple's Multipeer Connectivity framework, essentially a peer-to-peer feature that lets you share messages (and soon photos) with other app users nearby, regardless of whether you have an actual Wi-Fi or cellular connection.

Does iOS support WIFI Direct?

The official list of current iOS Wi-Fi Management APIs. There is no Wi-Fi Direct type of connection available. The primary issue being that Apple does not allow programmatic setting of the Wi-Fi network SSID and password.

How do I turn on WIFI Direct on my iPhone 13?

Select Wi-Fi in the iPhone's settings to turn on the Wi-Fi. Tap Direct-xx-BRAVIA on the iPhone's screen to display the password input screen. Enter the WPA key (password) displayed on the TV screen, then tap Join. Allow a few minutes for the connection to be established, and the Settings screen to appear.


1 Answers

GameKit is your best bet, in my opinion. The official docs are fantastic and should walk you through it just well, even though it's not a tutorial, per se.

Here are a couple though:

http://vivianaranha.com/apple-gamekit-bluetooth-integration-tutorial/

http://www.devx.com/wireless/Article/43502/1954

and you can check out the source code of BeamIt!

http://arctouch.com/beamit/

Hope that helps.

like image 167
MarkPowell Avatar answered Sep 21 '22 08:09

MarkPowell