<?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>Selective pop-up pairing function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45709/selective-pop-up-pairing-function</link><description>Hello! I am using SDK 15.3.0 to develop the NRF52832 firmware. At present, I want to implement a function, when the device is connected to the IOS host, start pairing, and when connected to the ANDROID host, no pairing window will pop up. Determine whether</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2019 07:07:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45709/selective-pop-up-pairing-function" /><item><title>RE: Selective pop-up pairing function</title><link>https://devzone.nordicsemi.com/thread/180165?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 07:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4e8ff3-3f63-403e-853e-dfc51d0dc935</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Determine whether the host you are connecting to is IOS or ANDROID by whether you find the ANCS service[/quote]
&lt;p&gt;&amp;nbsp;I think this is a good idea. You can comment out this line &amp;quot;pm_handler_secure_on_connection(p_ble_evt);&amp;quot; in ble_evt_handler() to stop the peer manager from sending a pairing request on the connection event, and instead request pairing manually if the following conditions are met (use pm_conn_secure() to request pairing):&lt;/p&gt;
&lt;p&gt;- Peer is not previously&amp;nbsp;bonded&lt;/p&gt;
&lt;p&gt;- ANCS service is discovered&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>