<?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>Change static passkey after 1st bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26602/change-static-passkey-after-1st-bonding</link><description>In my application,the end product is given to the user with a static passkey. We need to give the user the provision to change the passkey . 
 Currently I have a working code with static passkey. I can bond to my device with the default password &amp;quot;123456</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Nov 2017 14:08:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26602/change-static-passkey-after-1st-bonding" /><item><title>RE: Change static passkey after 1st bonding</title><link>https://devzone.nordicsemi.com/thread/104635?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 14:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbdbc7c4-d8c0-4676-988a-df1a3e2d7f58</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Arun,&lt;/p&gt;
&lt;p&gt;You would need to define your own protocol to receive the new passkey via BLE. It could be as simply as a write command. Then when you receive the command you call sd_ble_opt_set() to change the passkey.&lt;/p&gt;
&lt;p&gt;Note that after you bond, the next time the 2 device connect again, it won&amp;#39;t need passkey anymore because they will automaticaly reuse the stored LTK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>