dgund
dgund

Reputation: 3467

Communicating between iPhone and Mac

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?

Upvotes: 4

Views: 5901

Answers (2)

Boobalan
Boobalan

Reputation: 823

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

Upvotes: 4

skram
skram

Reputation: 5314

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 !

Upvotes: 6

Related Questions