<div dir="ltr">Hi Hannu,<div><br></div><div>I have fixed Qt Bluetooth like you described and it's working, a new rpm is under way.</div><div><br></div><div>It's in my fork on github for those interested : <a href="https://github.com/lainwir3d/qtconnectivity/commit/5f42edc7ce404db1a9fe95087bf6c0866df40771">https://github.com/lainwir3d/qtconnectivity/commit/5f42edc7ce404db1a9fe95087bf6c0866df40771</a></div><div><br></div><div>Thanks again for the help !</div><div><br></div><div>Richard</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 7:41 AM, Hannu Mallat <span dir="ltr"><<a href="mailto:hannu.mallat@jolla.com" target="_blank">hannu.mallat@jolla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Richard,<br>
<br>
we recently made certain BlueZ D-Bus methods restricted to the<br>
privileged group. This was done because some operations, like<br>
creating or removing pairings, should happen only via the OS bluetooth<br>
UI. The method you noticed, org.bluez.Adapter.CreateDevice, is also in<br>
this list.<br>
<br>
Since you need a device object path to be able to call<br>
org.bluez.Device.DiscoverServices a non-privileged app can retrieve<br>
service records over D-Bus for a device that has already been created,<br>
but not for one that hasn't.<br>
<br>
Unfortunately checking the Qt code shows that it always calls<br>
CreateDevice, even if the device already exists... and only proceeds<br>
with FindDevice if the returned error for that is AlreadyExists. So<br>
that will stop you even if the headset has been paired already.<br>
<br>
We'll review what is the best way to correct this. The plan is of<br>
course to check all issues like this before officially allowing Qt<br>
Bluetooth API as a shared library in harbour...<br>
<br>
In the meanwhile, you should be able to work around this by patching<br>
your copy of Qt Bluetooth to call CreateDevice only after FindDevice,<br>
and then service discovery should work for paired devices.<br>
<br>
BR,<br>
H.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><p><span style="color:rgb(34,34,34);font-family:Arial,sans-serif;font-size:10pt">Richard Rondu</span></p>

<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Responsable de projet </span></p>

<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">EIREL</span></p>

<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">33, av. Claude Debussy</span></p>

<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">92588 Clichy Cedex</span></p>

<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Tél: </span><a><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1155cc">0141401263</span></a><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>

<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Fax: </span><a><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1155cc">0141400238</span></a><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>



<p> </p></div>
</div>