<?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 to change passkey by using press a button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65181/how-to-change-passkey-by-using-press-a-button</link><description>Hi, 
 I&amp;#39;m super rookie on BLE project, 
 my question is how can I using button press to accept a central pairing instead of typing passkey, 
 here&amp;#39;s my code, using nrf 52810, ble_app_hrs example for my study</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Aug 2020 13:22:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65181/how-to-change-passkey-by-using-press-a-button" /><item><title>RE: how to change passkey by using press a button</title><link>https://devzone.nordicsemi.com/thread/267021?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 13:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9140af55-694e-441d-baa7-3453c3f4ca4e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think &lt;span&gt;&lt;a title="Experimental: LE Secure Connections Multirole Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_multirole_lesc.html?cp=7_1_4_2_1_3"&gt;Experimental: LE Secure Connections Multirole Example &lt;/a&gt;&lt;/span&gt;&lt;span&gt;supports numeric comparison pairing. Please take a look at to see if you can use it as a reference. One problem I noticed while looking through the code you posted is that the IO capabilities are not set to BLE_GAP_IO_CAPS_DISPLAY_YESNO. You may also find the Softdevice MSCs here useful even though most of it is handled by the Peer Manager module:&amp;nbsp; &lt;a title="Peripheral Security Procedures" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___m_s_c.html?cp=4_7_3_1_2_1_5_10"&gt;Peripheral Security Procedures&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>