<?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>Device name change</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10539/device-name-change</link><description>Hi, 
 I know how to change the name of the device using 
 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);
err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode,(uint8_t const *) DEVICE_NAME, sizeof(DEVICE_NAME));
 
 No problem there. I know how to store it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Nov 2015 09:22:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10539/device-name-change" /><item><title>RE: Device name change</title><link>https://devzone.nordicsemi.com/thread/39212?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 09:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4700ef8-e4f1-4e6b-b74d-43289d592d56</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Since you answered your own question, is there anything else you still haven&amp;#39;t resolved? If yes, please update the question. If not, please just mark your own answer as the accepted one :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device name change</title><link>https://devzone.nordicsemi.com/thread/39211?ContentTypeID=1</link><pubDate>Sun, 29 Nov 2015 22:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:641663bf-e320-4b20-89e8-a889a97bd4cd</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Bit of digging and found elsewhere but needed tweaking.&lt;/p&gt;
&lt;p&gt;In my &amp;quot;main.c&amp;quot; I have this now&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void ble_gatt_params_on_ble_evt(ble_evt_t * p_ble_evt)
{
    ble_gatts_evt_write_t * p_evt_write = &amp;amp;p_ble_evt-&amp;gt;evt.gatts_evt.params.write;
    
    if (p_evt_write-&amp;gt;context.char_uuid.uuid == BLE_UUID_GAP_CHARACTERISTIC_DEVICE_NAME)
    {
        RMLOG(&amp;quot;TODO: Name change attempt&amp;quot;);
        
        // Device name is
        //p_evt_write-&amp;gt;data;
        //p_evt_write-&amp;gt;len;
        
    }
    
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And then in my main handler I do this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{
    
    on_ble_evt(p_ble_evt);
    
    // Connection parameters
    ble_conn_params_on_ble_evt(p_ble_evt);
    
    // Device Name parameter
    ble_gatt_params_on_ble_evt(p_ble_evt);
    
    // Handle the sense service
    ble_sense_on_ble_evt(&amp;amp;m_sense, p_ble_evt);

    // Handle any Roam Core BLE services
    ble_rmcs_on_ble_evt(&amp;amp;m_rmcs, p_ble_evt);
    
    // Handle the Battery services
    ble_bas_on_ble_evt(&amp;amp;m_bas, p_ble_evt);

    // Anything for advertising to handle
    ble_advertising_on_ble_evt(p_ble_evt);

}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>