Recovering after turning BT off and on
Recovering after turning BT off and on
- Subject: Recovering after turning BT off and on
- From: Daniel Birns <email@hidden>
- Date: Thu, 9 Oct 2008 11:37:33 -0700
Resolved:
I added the following the test:
Begin forwarded message: Date: October 9, 2008 10:35:43 AM PDT Subject: Recovering after turning BT off and on
To clarify: I can recreate this problem by doing a device inquiry with BT, turn BT off inquire again, turn BT back on and inquire again. The callback set by IOBluetoothDeviceInquirySetDeviceFoundCallback() is never called.
I'm not sure how to work around this or what's causing it...
--Daniel We have a pretty reliable BT implementation. The problem I'm having is after you successfully use BT, if you then disable it (from the system toolbar), and then reenable it, I get the following behavior:
I am using IOBluetoothDeviceInquirySetDeviceFoundCallback().
When this is called, I set a counter, as per the bt examples in the manual.
After I disable/enable BT, this never gets called. However, if I stop my application and restart it, everything works fine.
Is there something I need to do in this case to reset a state or something? I'm using IOBluetoothLocalDeviceGetPowerState() to discover when BT is available to me. When it's not available I abort my inquiry. Perhaps I'm leaving some state somehow that's causing this problem?
--Daniel
|
_______________________________________________
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