<?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>BLE Multirole with different security level</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76462/ble-multirole-with-different-security-level</link><description>Hi, 
 I want to make a BLE Multirole application where the central demands LESC, bonding and MITM and peripheral connections is JUST WORKS bonding. 
 Is that possible? If yes, how is it setup? 
 Thanks in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Jun 2021 09:15:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76462/ble-multirole-with-different-security-level" /><item><title>RE: BLE Multirole with different security level</title><link>https://devzone.nordicsemi.com/thread/316204?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 09:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93bf33a7-30ed-4159-ab2b-51c74a062ab2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it&amp;#39;s possible. You can see how it&amp;#39;s done in the ble_app_gls example on the PM_EVT_CONN_SEC_SUCCEEDED event. The difference in your case will be that you have to make the handling dependent what GAP role the event was for (i.e. check if the event was for the Central or Peripheral connection)&lt;/p&gt;
&lt;p&gt;You can use &lt;span&gt;&lt;a title="ble_conn_state_role" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__ble__conn__state__functions.html?cp=8_1_6_2_9_0_13#ga19606b9fb4a84da9390d94b6f102dcd1"&gt;ble_conn_state_role&lt;/a&gt;&lt;/span&gt;() to check if a given connection handle is a central or peripheral connection.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>