<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Quick Bluetooth Connectivity]]></title><description><![CDATA[<p dir="auto">Currently, I am performing a scan for nearby Bluetooth using the followings:</p>
<pre><code>agent = new QBluetoothDeviceDiscoveryAgent;
    connect(agent, SIGNAL(deviceDiscovered(QBluetoothDeviceInfo)),
            this, SLOT(deviceDiscovered(QBluetoothDeviceInfo)));
    agent-&gt;start();
</code></pre>
<p dir="auto">and then the app tries to connect user-selected BT when discovery finished signal is emitted.</p>
<pre><code>connect(agent, &amp;QBluetoothDeviceDiscoveryAgent::finished, this, &amp;bluetooth_server::connectToDevice);
</code></pre>
<p dir="auto">this takes too long to connect, how can I make it quick and efficient?</p>
]]></description><link>https://forum.qt.io/topic/108916/quick-bluetooth-connectivity</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 01:02:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/108916.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Nov 2019 02:28:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Quick Bluetooth Connectivity on Sun, 17 Nov 2019 08:37:25 GMT]]></title><description><![CDATA[<p dir="auto">Ah, I see what you are doing here.<br />
When does the user select the device: before or after the discovery?<br />
If it's before discovery, no need to do a discovery at all. Connect immediately.<br />
If during the discovery, no need to wait for finished() at all, connect as soon as user selects it (stop the discovery first) .</p>
]]></description><link>https://forum.qt.io/post/562277</link><guid isPermaLink="true">https://forum.qt.io/post/562277</guid><dc:creator><![CDATA[hetalik]]></dc:creator><pubDate>Sun, 17 Nov 2019 08:37:25 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Bluetooth Connectivity on Sun, 17 Nov 2019 08:33:00 GMT]]></title><description><![CDATA[<p dir="auto">What do you mean by too long: a few seconds?</p>
]]></description><link>https://forum.qt.io/post/562275</link><guid isPermaLink="true">https://forum.qt.io/post/562275</guid><dc:creator><![CDATA[hetalik]]></dc:creator><pubDate>Sun, 17 Nov 2019 08:33:00 GMT</pubDate></item></channel></rss>