<?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_uart_app with static passkey on SDK 11</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15272/ble_uart_app-with-static-passkey-on-sdk-11</link><description>I have been trying for a long time to implement ble_uart_app with static passkey on SDK 11 s130 on nRF51-dk. 
 There are a couple of threads on this feature. 
 devzone.nordicsemi.com/.../ 
 devzone.nordicsemi.com/.../ 
 devzone.nordicsemi.com/...</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2016 12:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15272/ble_uart_app-with-static-passkey-on-sdk-11" /><item><title>RE: ble_uart_app with static passkey on SDK 11</title><link>https://devzone.nordicsemi.com/thread/58344?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 12:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf8c4fe-2882-4568-9157-ed72c0a30d77</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi helpme,&lt;/p&gt;
&lt;p&gt;If  you are using SDK v11, I would suggest to have a look at the ble_app_gls example.
With that example you have an example of how to enable pairing with passkey (not static passkey).
Both device manager and peer manager support passkey (and static passkey).&lt;/p&gt;
&lt;p&gt;You need to enable MITM both when you setup the security parameter and the properties of the characteristic.&lt;/p&gt;
&lt;p&gt;After you have pairing with passkey worked, you can start to use the sd_ble_opt_set() to set the passkey, it will be pretty straight forward.&lt;/p&gt;
&lt;p&gt;Note that the ble_app_uart doesn&amp;#39;t device manager or peer manager and doesn&amp;#39;t support pairing. I would suggest to start with the ble_app_gls and after you get it working, you port it to ble_app_uart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>