<?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 security</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8953/ble-security</link><description>Hello, 
 Using BLE Scanner app (available for Android), i&amp;#39;m able to change the device name. I can also write other values for each characteristic. 
 How can we protect a BLE Network from Writing ? (Read only) 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 29 Aug 2015 01:43:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8953/ble-security" /><item><title>RE: BLE security</title><link>https://devzone.nordicsemi.com/thread/32973?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2015 01:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d388a05a-e369-4b07-9d51-335773b7ae98</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Change the flags on the characteristics&amp;#39; meta data character properties to only have &amp;#39;read&amp;#39;, you can also set the security mode for write to &amp;#39;no access&amp;#39;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// configure the characteristic metadata - everything is readable only
char_md.char_props.read = 1;

// configure the attribute metadata
BLE_GAP_CONN_SEC_MODE_SET_OPEN( &amp;amp;attr_md.read_perm ); 
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS( &amp;amp;attr_md.write_perm ); 
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>