Create a Terminal-Based Bluetooth Monitor in XCode?
问题 I want to create a Terminal application that connects to a Bluetooth Device and outputs any commands that are sent out by the bluetooth device. So far, I am able to scan and output a list of available devices. Any direction would be greatly appreciated - is this even possible? What should I be looking at now? I tried to use BluetoothDeviceAddress and IOBluetoothL2CAPChannelGetDevice but haven't had any success yet. Here is my code so far: #include <Foundation/Foundation.h> #include <Cocoa