<?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>Enforce order of connection to centrals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29694/enforce-order-of-connection-to-centrals</link><description>I have peripheral BLE device which can have several centrals in its whitelist. It should be able to connect to central with higher priority first, for example: device have 3 centrals in whitelist with A having highest priority, B second highest and C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jan 2018 08:52:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29694/enforce-order-of-connection-to-centrals" /><item><title>RE: Enforce order of connection to centrals</title><link>https://devzone.nordicsemi.com/thread/117830?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 08:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fef8dc5-e0bb-44b9-a993-b7c47c3d1eff</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Another option could be to advertise with A, B and C in the whitelist.&lt;/p&gt;
&lt;p&gt;If A connects first, you stop advertising.&lt;/p&gt;
&lt;p&gt;If B connects first you continue to advertise with A in whitelist, and then if A connects you disconnect B and stop advertising.&lt;/p&gt;
&lt;p&gt;If C connects first you continue to advertise, if B then connects you disconnect C and continue to advertise with A in the whitelist and so on..., and if A connects you disconnect C and stop advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enforce order of connection to centrals</title><link>https://devzone.nordicsemi.com/thread/117829?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 16:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b65551-0230-4e62-91d9-6b46d03531de</guid><dc:creator>Andrii</dc:creator><description>&lt;p&gt;trying to whitelist all single hosts will be too slow for me. But now I know that it can&amp;#39;t be done in &amp;quot;normal&amp;quot; way. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enforce order of connection to centrals</title><link>https://devzone.nordicsemi.com/thread/117828?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 11:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a79cfa2-dd9a-44bb-8a41-3e8557c8bbe2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is not possible to block B and C if A is available. Either the devices are in the whitelist or not.&lt;/p&gt;
&lt;p&gt;The only way I can think of is using a timer. When the device is powered up you whitelist with A for x ms, then after x ms you put in B and then after x ms you put in C.&lt;/p&gt;
&lt;p&gt;Yes, this would make the connection to C slower if only C is available, but what is too slow I can&amp;#39;t say for your application. You can tune it by selecting how long you want to wait before you put more devices into the whitelist.&lt;/p&gt;
&lt;p&gt;Will this work for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>