<?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>Using Scan Filters for BLE Devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106336/using-scan-filters-for-ble-devices</link><description>I am currently trying to set up a filter to connect to a device based on its name. I will attach my scan init and scan start to show how I have this configured. I want to be able to connect to the device in the scan event handler when a match is found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Dec 2023 12:38:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106336/using-scan-filters-for-ble-devices" /><item><title>RE: Using Scan Filters for BLE Devices</title><link>https://devzone.nordicsemi.com/thread/458955?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 12:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e0c5413-6a73-42d9-a095-77efcf75b258</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Good eye Si-Mohamed, seems like that could be the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Scan Filters for BLE Devices</title><link>https://devzone.nordicsemi.com/thread/458846?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 00:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98724b04-ac27-4702-aba7-67c22cdf3c2d</guid><dc:creator>Simo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try removing the &amp;quot;&amp;amp;&amp;quot; in front of &amp;quot;target_device_name&amp;quot;. No need to dereference the variable&amp;nbsp;&lt;span&gt;&lt;em&gt;target_device_name&lt;/em&gt;, it is already a pointer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_NAME_FILTER, target_device_name);
APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Simo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>