Re: device inquiry doesnt automatically stop
Re: device inquiry doesnt automatically stop
- Subject: Re: device inquiry doesnt automatically stop
- From: email@hidden
- Date: Sun, 11 Nov 2007 14:16:51 +0100
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 <email@hidden>:
> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
___________________________________________________________________________
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden