<?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>How does a peripheral refuse a connection from a central?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8638/how-does-a-peripheral-refuse-a-connection-from-a-central</link><description>I have a peripheral (nRF51822, s110, SDK 8.1, using the device manager) which should only ever be bonded with zero or one centrals. The behaviour I&amp;#39;m aiming for is this: 
 
 Whether there&amp;#39;s a bond or not, advertise.
2a. If there&amp;#39;s no bond and a central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Aug 2015 15:36:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8638/how-does-a-peripheral-refuse-a-connection-from-a-central" /><item><title>RE: How does a peripheral refuse a connection from a central?</title><link>https://devzone.nordicsemi.com/thread/31601?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2015 15:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e77b91-5ab2-478c-91cb-3240feef3f0d</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;OK, great. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does a peripheral refuse a connection from a central?</title><link>https://devzone.nordicsemi.com/thread/31600?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2015 15:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eabd9f52-e414-45fc-b60d-fffb18e06fec</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The Advertising Module was introduced in SDK 8.0.0. You don&amp;#39;t need one :) It just a suggested way to handle advertising. If you don&amp;#39;t use it, you can ignore the last sentence :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does a peripheral refuse a connection from a central?</title><link>https://devzone.nordicsemi.com/thread/31599?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2015 14:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14e4b919-a2cc-467e-9dd8-76fb2a4ad993</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Thanks. I&amp;#39;m using a whitelist already and have added details above. I&amp;#39;m confused about the answer you linked to. I don&amp;#39;t currently have any on_adv_evt() handler in my code. Is this a new thing in recent SDKs? Do I need one? I&amp;#39;m already calling dm_whitelist_create() before advertising, but at no point am I calling ble_advertising_whitelist_reply() currently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does a peripheral refuse a connection from a central?</title><link>https://devzone.nordicsemi.com/thread/31598?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2015 12:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdbf781d-a86b-4a4d-a472-9cc897647ae1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&amp;quot;The Link Layer may perform device filtering based on the device address of the peer device. Link Layer Device Filtering is used by the Link Layer to minimize the number of devices to which it responds.&amp;quot; See Vol. 6, Part B, Section 4.3 in the Bluetooth Core specification 4.2.&lt;/p&gt;
&lt;p&gt;&amp;quot;The set of devices that the Link Layer uses for device filtering is called the White List.&amp;quot; See Vol. 6, Part B, Section 4.3.1 in the Bluetooth Core specification 4.2.&lt;/p&gt;
&lt;p&gt;Whitelist is exactly what you describe, you still send out advertising packets, but you only respond to connection requests from devices in the whitelist. The whitelist is usually created by using the addresses and IRKs of the current bonded devices.&lt;/p&gt;
&lt;p&gt;There are many questions regarding whitelist on Devzone, so a search should give you some information on how to set it up, but please ask if you get into trouble, preferably in a new question.&lt;/p&gt;
&lt;p&gt;If you are using the &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00022.html"&gt;Advertising Module&lt;/a&gt; in SDK 8.1.0, please be aware of &lt;a href="https://devzone.nordicsemi.com/question/36944/enabling-whitelisting/"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>