<?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 read the StaticPasskey from Softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25385/how-to-read-the-staticpasskey-from-softdevice</link><description>Hi, I want to read the StaticPasskey from the Softdevice that was set before with: 
 uint8_t u8_ToBePassKey[];
/* 
 * Configure ToBePassKey in some way... 
 */
m_static_pin_option.gap_opt.passkey.p_passkey = u8_ToBePassKey;
sd_ble_opt_set(BLE_GAP_OPT_PASSKEY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Sep 2017 10:08:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25385/how-to-read-the-staticpasskey-from-softdevice" /><item><title>RE: How to read the StaticPasskey from Softdevice</title><link>https://devzone.nordicsemi.com/thread/100037?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 10:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57918bd3-09c0-4f7d-88e4-58591200ed78</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I still don&amp;#39;t get why you need to read it out.&lt;/p&gt;
&lt;p&gt;Either you have set it to be static, and you have have set what the static key is, so you know what it is.&lt;/p&gt;
&lt;p&gt;Or it is not static, it is random. Do you want to read out the random key? Why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read the StaticPasskey from Softdevice</title><link>https://devzone.nordicsemi.com/thread/100038?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 09:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab0fac0-b250-4f09-a7ef-d71f0335578f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Sure! It is not supported i guess.&lt;/p&gt;
&lt;p&gt;Maybe my question is meant more like: Is there a way to readout the passkey?&lt;/p&gt;
&lt;p&gt;Background Infos:
The user can set a property ToBePassKey via BT which will set the StaticPassKey in the SD when it is between 0-9.
But when the passkey is not valid like &amp;quot;02425a&amp;quot; the ToBePassKey should be set to the actual PassKey that is set in the SD. Therefor I want to read the PassKey from the SD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read the StaticPasskey from Softdevice</title><link>https://devzone.nordicsemi.com/thread/100036?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 08:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ce529b9-d9b3-48a5-b73d-86b5c01a6e0f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you get NRF_ERROR_NOT_SUPPORTED it probably means it is not supported.&lt;/p&gt;
&lt;p&gt;Could you explain a bit more about why you want to get it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>