4

I'm planning on creating an app that takes data from an iPhone and sends it to another application on the Mac. Gyroscope data will also be sent.

I'm assuming that this should best be done over a bluetooth connection.

Could anyone please give me some information as to how I should structure the apps or if it is possible?

jscs
  • 63,694
  • 13
  • 151
  • 195
dgund
  • 3,459
  • 4
  • 39
  • 64
  • 2
    According to my researches there is not the possibility to send custom data over bluetooth. You have to use a wi-fi connection. – Manlio Jun 10 '12 at 15:08
  • How about using Bonjour? – Jelle Jun 10 '12 at 15:39
  • Bonjour seems possible. http://stackoverflow.com/questions/3901659/how-to-send-data-from-iphone-over-wifi-to-application-to-print-message agrees. – dgund Jun 10 '12 at 15:49
  • Bluetooth is possible. Bonjour uses it. My own app uses it through bonjour. – Dancreek Jun 10 '12 at 16:17
  • I guess the question would be Bonjour through Bluetooth or Bonjour through wifi? Bluetooth seems like it would be faster – dgund Jun 10 '12 at 16:24

2 Answers2

6

Id say the most ideal way to accomplish this is via the Bonjour protocol.

Here is a great article on the subject, http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/.

Good thing with using Bonjour in iOS is it also works via Bluetooth.

Hope this helps !

skram
  • 5,314
  • 1
  • 22
  • 26
4

Here I have created sample application which exchange the data between iphone and iMAC.

I have tested only with wifi.

https://github.com/boobalaninfo/Bonjour-iOS-MAC-Apps

Boobalan
  • 815
  • 11
  • 11