site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com User-agent: www.mail386.com Tom, Bluetooth processing takes place when you start the RunLoop by calling CFRunLoopRun(). For testing purposes stop the RunLoop in your inquiry complete callback by calling CFRunLoopStop(CFRunLoopGetCurrent()). You will then receive inquiry result just after CFRunLoopRun() call. Note, this call is a blocking call! Read some information about the RunLoops, I guess it won't make much sense before doing that. :) Regards, Boris Navajanje Tom Burger <tvburger@gmail.com>:
Hi all,
I have problems with the IOBluetoothDeviceInquiry. So far I haven't found material about it on the web. Can someone please explain?
- Environment: My Bluetooth API version is 1.7.14. A inquiry will start for N seconds, what is by default 10 seconds.
- Situation: So let's start the inquiry with a complete callback: inquiryRef = IOBluetoothDeviceInquiryCreateWithCallbackRefCon(NULL); IOBluetoothDeviceInquirySetUpdateNewDeviceNames(inquiryRef, FALSE); IOBluetoothDeviceInquirySetCompleteCallback(inquiryRef, completeCallback); IOBluetoothDeviceInquiryStart(inquiryRef);
(Checking IOBluetoothDeviceInquiryGetLength gives also the default 10secs)
My theory is that the completeCallback should be invoked after 10 seconds. But nothing happens (not even after 25 seconds)... only when I 'manually' call the IOBluetoothDeviceInquiryStop function it will call the completeCallback() function.
- Question: Should the bluetooth device automatically leave inquiry mode after the number of seconds that a inquiry has been setup for? Or does it only leave the inquiry mode by calling the IOBluetoothDeviceInquiryStop() function?
Kind regards, Tom _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/b00mer%40mail386.com
This email sent to b00mer@mail386.com
___________________________________________________________________________ Najhitrejši brezplačni klicni dostop :: Varno in zanesljivo po internetu Obiščite http://www.dialup386.com/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
b00mer@mail386.com