Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 831
dgund Avatar asked Dec 26 '22 23:12

dgund


2 Answers

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 !

like image 53
skram Avatar answered Jan 05 '23 17:01

skram


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

like image 25
Boobalan Avatar answered Jan 05 '23 17:01

Boobalan