<?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>Passkey and the gls example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15894/passkey-and-the-gls-example</link><description>Hi! 
 I am trying to modify the ble_app_gls example from the 8.0.0 SDK and am running into some issues. I am trying to add the nus service to this example and would like to remove the gls service, so I would basically have the nus example with pairing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Aug 2016 12:17:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15894/passkey-and-the-gls-example" /><item><title>RE: Passkey and the gls example</title><link>https://devzone.nordicsemi.com/thread/60629?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 12:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27a2513e-57c9-413a-bda7-ccf71937eeea</guid><dc:creator>KlevioRok</dc:creator><description>&lt;p&gt;Thank you Alex. This should be treated as closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passkey and the gls example</title><link>https://devzone.nordicsemi.com/thread/60628?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 09:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e676dd-e04d-4a92-9081-10b3d52cace9</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;As I mentioned you can connect without being asked for passkey. Passkey will be asked as soon as you try to perform operation on the service which has BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM. In the case above it is writing as far as I understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passkey and the gls example</title><link>https://devzone.nordicsemi.com/thread/60627?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 09:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44557d28-30ed-4a26-aaad-62d440f7c287</guid><dc:creator>KlevioRok</dc:creator><description>&lt;p&gt;Thanks for the suggestion.&lt;/p&gt;
&lt;p&gt;Yeah I saw this difference when checking the ble_gls_init and ble_nus_init functions and modified the rx_char_add function so that it know states:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;cccd_md.write_perm);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But for some reason the nrf connect still doesnt prompt for a passkey and just connects to the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passkey and the gls example</title><link>https://devzone.nordicsemi.com/thread/60626?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 09:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbb4c381-f74f-4e63-bff5-c542d03a7739</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Check in ble_gls_init() if you are using BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM which should trigger passkey enter when app accesses gls service. I think iOS asks for passkey always but Android if app trying to access it. Although I may be wrong regarding difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>