<?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>Block ble connection with other devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15205/block-ble-connection-with-other-devices</link><description>Hi all,
I am trying to block connection from other devices to my nrf51dk board, except some specific devices. I used whitelist but it seem like the peripheral only block the devices inside the whitelist not vice versa. 
 Gap::Whitelist_t whitelist;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Jul 2016 11:23:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15205/block-ble-connection-with-other-devices" /><item><title>RE: Block ble connection with other devices</title><link>https://devzone.nordicsemi.com/thread/58059?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 11:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:056f17ca-6e84-44cf-b0ad-172d79a5b905</guid><dc:creator>chung</dc:creator><description>&lt;p&gt;My phone address isn&amp;#39;t change after days so it definitely static and I think the whitelist problem is because of the mbed os I am using. I read the comments in gap.h and I found @experimental in the comments of whitelist related function. So that would be the reason.
If it&amp;#39;s like what you said that the only way for me to block the connection is by using whitelist then I think I could use the button to turn the whitelist on off to block the connection.
Thanks for comment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Block ble connection with other devices</title><link>https://devzone.nordicsemi.com/thread/58058?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 10:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ca9685-4061-4f94-ba54-51e6319ace54</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The peripheral blocks devices in the whitelist? I&amp;#39;m pretty sure that either it will not block any devices, or it will block devices that are not in the whitelist. Are you sure you smart phone is using the random static address type?&lt;/p&gt;
&lt;p&gt;The only way for a peripheral to block a connection is to use a whitelist. You can however protect your characteristic values by setting security level requirements on them. Then you need to pair before the central can access them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>