Re: Open-connection bug, workaround request
Re: Open-connection bug, workaround request
- Subject: Re: Open-connection bug, workaround request
- From: Camille Troillard <email@hidden>
- Date: Wed, 28 Jul 2010 11:14:14 +0200
Hi Dave,
On Wed, Jul 28, 2010 at 9:57 AM, Dave Keck
<email@hidden> wrote:
I'm having an issue where opening a connection to a Bluetooth device
results in -connectionComplete:status: being called claiming the
connection was successful, but -isConnected returns NO for the
Bluetooth device. Repeated attempts to open a connection results in
the same behavior, and calling -closeConnection returns 0xE00002C0
("no such device", according to IOReturn.h.) Once in this state,
opening a connection to the device becomes impossible, and other
Bluetooth operations fail for the device.
I think I ran into a similar problem.
Starting with 10.5.7 and up, I noticed the connection closing was not anymore working as expected (the device was left open in a semi-catatonic state).
I filled a bug report, to which the technician replied that I should try to use this undocumented API:
Instead of -closeConnection, call -destroyConnection.
Since then everything works fine, but it's such a bummer that I have to make the distinction between pre and post-10.5.7 in my code.
Best Regards,
Cam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden