I am creating Os x Application on Mavericks with Xcode 6. I want to do simple task in this Application like search for Bluetooth Devices and display List, Connect with device which is selected from list.
I am using IOBluetooth Framework. I have completed searching, display and selection part but I am not able to connect with device.
I have write
IOBluetoothDevice *device= [[IOBluetoothDevice alloc] init];
IOReturn status=[device openConnection:[self.list objectAtIndex:row]];
if(status == kIOReturnSuccess){
NSLog(@"Device Connect Successfully::::");
}
"Device Connect Successfully" Message printed on console but device is still not connected.
So I am following right way to connect device? If Device is Connected then how do I Check it is connected or not?