I need to send data from an accelerometer (from my iPhone) to the Mac. I need a way to send this data to the Mac. 

The data should be sent in real time. there should not be any delay as such. What is the best method to send data to the Mac. 

1.) Is it through bluetooth or over the network ?

2.) I need to know if there are any tutorials/sample code to obtain accelerometers.