<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NCS BLE scanning module: Can’t switch between “scan without connect” to “scan with connect”</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100667/ncs-ble-scanning-module-can-t-switch-between-scan-without-connect-to-scan-with-connect</link><description>I would think a common scan use case for a Central role is to first scan for devices with a certain scan filter criteria. Next, out of that list of filtered devices that were discovered, initiate a connect based on another criteria, such as RSSI, or user</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 18 Jun 2023 15:14:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100667/ncs-ble-scanning-module-can-t-switch-between-scan-without-connect-to-scan-with-connect" /><item><title>RE: NCS BLE scanning module: Can’t switch between “scan without connect” to “scan with connect”</title><link>https://devzone.nordicsemi.com/thread/431605?ContentTypeID=1</link><pubDate>Sun, 18 Jun 2023 15:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c33a9e-776b-47c9-9fba-6733fe87e0a8</guid><dc:creator>variant</dc:creator><description>&lt;p&gt;It turns out that the quick and dirty fix of just calling&amp;nbsp;bt_le_scan_cb_unregister(&amp;amp;scan_cb) in bt_scan_init() won&amp;#39;t suffice for my needs.&lt;br /&gt;&lt;br /&gt;So I am now doing what I think is the correct fix of creating an API to&amp;nbsp; change bt_scan.connect_if_match:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if CONFIG_BT_CENTRAL
void bt_scan_update_connect_if_match(bool new_connect_if_match)
{
	bt_scan.connect_if_match = new_connect_if_match;
}
#endif /* CONFIG_BT_CENTRAL */
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This method is analogous to the existing method to update initial connection parameters:&amp;nbsp;bt_scan_update_connect_if_match().&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE scanning module: Can’t switch between “scan without connect” to “scan with connect”</title><link>https://devzone.nordicsemi.com/thread/430614?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 06:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3c5d5ad-2c99-4a15-8a09-0d14095b601b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;It is a sensible feature request, so we will try to get it in, but I cannot guarantee anything about future releases, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE scanning module: Can’t switch between “scan without connect” to “scan with connect”</title><link>https://devzone.nordicsemi.com/thread/430597?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 02:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44825f3b-8b7b-4ead-8dd5-bee6567ffb1f</guid><dc:creator>variant</dc:creator><description>&lt;p&gt;Thanks Einar.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I take it we would have to just look at NCS updates to see if the &amp;quot;feature&amp;quot; is added?&amp;nbsp; And, it might never be added?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE scanning module: Can’t switch between “scan without connect” to “scan with connect”</title><link>https://devzone.nordicsemi.com/thread/430538?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 14:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7fc3ddf-65f0-4edd-b57a-c23977f71b95</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for reporting this issue. As you have found, this is currently not supported out of the box. I have forwarded it as a feature request to the responsible team, but for now you either have to modify the NCS code as you do, or for instance always scan without connecting using the scan module, and then handle the connection in the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>