<?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 do I Set the Device Name to Read Only?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16931/how-do-i-set-the-device-name-to-read-only</link><description>How do I change the properties of the Generic Access service&amp;#39;s &amp;quot;Device Name&amp;quot; characteristic to be Read Only, not Read and Write? I see this 
 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);
 
 but this only offers security modes related to bonding and MITM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Oct 2016 17:02:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16931/how-do-i-set-the-device-name-to-read-only" /><item><title>RE: How do I Set the Device Name to Read Only?</title><link>https://devzone.nordicsemi.com/thread/64903?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 17:02:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce97b094-619a-4ae8-9f6a-ec6b11c4ff6f</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;That worked well.  I had to make sure that I updated the nRF Connect app (deleting the bond, and re-bonding) so that it would re-scan the characteristics to reflect these changes as well.  Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I Set the Device Name to Read Only?</title><link>https://devzone.nordicsemi.com/thread/64902?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 07:29:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c37f86e-fdba-4371-a457-0b011186ce09</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The first parameter in sd_ble_gap_device_name_set(..) sets the write permissions for the device name characteristic. Therefore, to make it read only, the sec_mode parameter should be set to &amp;quot;no access&amp;quot;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&amp;amp;sec_mode);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>