<?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>What are the purpose of the keypress and lesc function in Peer Manager?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25618/what-are-the-purpose-of-the-keypress-and-lesc-function-in-peer-manager</link><description>I try to add function for the peer manager initialization and set the security parameters. I did not understand keypress and lesc parameters exactly. Documentation says for keypress; 
 
 Enable generation of keypress notifications. 
 
 Also documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Oct 2017 10:10:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25618/what-are-the-purpose-of-the-keypress-and-lesc-function-in-peer-manager" /><item><title>RE: What are the purpose of the keypress and lesc function in Peer Manager?</title><link>https://devzone.nordicsemi.com/thread/100984?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 10:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ae718ad-7de7-453e-8638-f18e76890284</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;LE Secure Connections (LESC) what added in Bluetooth core specification 4.2.&lt;/p&gt;
&lt;p&gt;It is a pairing alternative that provides protection again eavesdropping and MITM attacks.&lt;/p&gt;
&lt;p&gt;It uses an Elliptic Curve Diffie-Hellman (ECDH) key agreement to derive encryption keys.&lt;/p&gt;
&lt;p&gt;Keypress notification can be used when doing LESC Passkey Entry, it is used to inform the remote device when keys have been entered or erased.&lt;/p&gt;
&lt;p&gt;The peer with the keyboard send them with sd_ble_gap_keypress_notify(), and the peer with the display receives BLE_GAP_EVT_KEY_PRESSED events.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t support LESC, set the LESC bit to 0. If you don&amp;#39;t support keypress notifications set the keypress bit to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>