Re: restart periodic inquiry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Adolfo,

> I'm currently working with DBUS and GLIB. I have made a function  
> that calls StartPeriodicDiscovery(). Everything works fine but, at  
> certain point, I want to stop and restart it and here problems  
> arise: when I call StopPeriodicDiscovery() my program exits and I  
> can't call again StartPeriodicDiscovery. My program exits just after  
> the StopPeriodicInquiry() is performed, and I dont call the  
> g_main_loop_quit(loop) function. Is it a normal behaviour?
> For me it is necessary to restart the inquiry procedure in some  
> cases. Is there a way to restart the periodic discovery or should I  
> move to the normal inquiry procedure? With the standard inquiry  
> procedure I could call CancelInquiry and then I could start the  
> inquiry procedure again.

sounds like a bug to me. However if you close the D-Bus connection, it  
will stop the periodic inquiry for you. If the application dies that  
started it, hcid will actually stop it for you. Meaning your  
application has to be running to start periodic inquiry.

Regards

Marcel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
Bluez-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux