<?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>connect based on the first letters\chars of the peripheral name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64254/connect-based-on-the-first-letters-chars-of-the-peripheral-name</link><description>Hi, 
 
 How can I develop my dongle to connect to devices with the name &amp;quot;device X&amp;quot;, where X is a variable that can be 1,2,3,.... 
 For example I want the dongle to connect to the device names : &amp;quot;device #1&amp;quot;, &amp;quot;device #2&amp;quot;. 
 
 Best Regards 
 JK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jul 2020 13:46:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64254/connect-based-on-the-first-letters-chars-of-the-peripheral-name" /><item><title>RE: connect based on the first letters\chars of the peripheral name</title><link>https://devzone.nordicsemi.com/thread/262435?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 13:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2597546a-1d4d-4035-a3b3-4b4d2385fdc3</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You&amp;#39;d have to check the &lt;strong&gt;documentation&lt;/strong&gt; for what, exactly the&amp;nbsp;&lt;span&gt;SCAN_SHORT_NAME_FILTER filter does.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But it&amp;#39;s all provided as source - so you can see what it does, and adapt that to your requirements ...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connect based on the first letters\chars of the peripheral name</title><link>https://devzone.nordicsemi.com/thread/262427?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 13:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d6211f-e923-48b5-af2b-d23c346dc361</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;so using the filter&amp;nbsp;SCAN_SHORT_NAME_FILTER, will do the work for me.&lt;/p&gt;
&lt;p&gt;The central will connect to the peripheral device that has the name provided to the filter as a first part of the full peripheral device name.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is that correct ?&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connect based on the first letters\chars of the peripheral name</title><link>https://devzone.nordicsemi.com/thread/261926?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 09:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:953a7c21-779a-4a71-bbdb-c105d2c76072</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, I understood.&lt;/p&gt;
&lt;p&gt;The example shows you how to decide whether to connect based on the advertised name.&lt;/p&gt;
&lt;p&gt;So you just need to change it to look at only &lt;em&gt;part&lt;/em&gt; of the name - instead of the whole name.&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;Also take a look at this:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56558/sdk-16-get-device-name-from-advertising-data"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56558/sdk-16-get-device-name-from-advertising-data&lt;/a&gt;&amp;nbsp;- on how to get the advertising name from the advertising report ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connect based on the first letters\chars of the peripheral name</title><link>https://devzone.nordicsemi.com/thread/261918?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 09:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f356df-8687-4b1d-b604-9eadb2bd3ee0</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;seems you didn&amp;#39;t understand me right.&lt;/p&gt;
&lt;p&gt;The first part of the devices names is permanent, the second part of the names is different for each device ( the different part can be every number from 1,2,3 .. and so on).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connect based on the first letters\chars of the peripheral name</title><link>https://devzone.nordicsemi.com/thread/261912?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 09:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c73b544-45bf-42fa-b73f-d2188d35984f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Pretty sure there are SDK examples which connect based on the advertised name ...&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;Here you go - very first example on the list:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1595927497310v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky_c.html"&gt;infocenter.nordicsemi.com/.../ble_sdk_app_blinky_c.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>