12
votes

I am trying to develop an application using bluetooth in my Mac mini. However, after searching all over net, all that I could find was the "Bluetooth Device Access Guide" from Apple, and not a single sample program!

Can anyone suggest of any sample code for this available ?

what I am trying to do in my program:

I want to pair my iPhone with my Mac programmatically over the PAN profile, and then send data (streams) both ways. I paired them manually, and I was successfully able to transfer data. I just want to do that programmatically!

1
look at this code =) frederikseiffert.de/blueutilFernando Meyer
Try thisRLT

1 Answers

0
votes

[In 2016] I suspect you want CoreBluetooth

The Core Bluetooth framework provides the classes needed for your iOS and Mac apps to communicate with devices that are equipped with Bluetooth low energy wireless technology

You can do things like discover paired devices around you, read and write, and it documents best practices!