<?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>Problem changing the BLE device name.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88069/problem-changing-the-ble-device-name</link><description>I need to be able to change the device name the SoftDevice uses AFTER the soft device is up and running. To change the device name, To do this I use 
 
 errorCode = sd_ble_gap_device_name_set(&amp;amp;sec_mode, deviceName, strlen(deviceName)); 
 
 which also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 May 2022 12:05:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88069/problem-changing-the-ble-device-name" /><item><title>RE: Problem changing the BLE device name.</title><link>https://devzone.nordicsemi.com/thread/368597?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 12:05:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78315d42-76b4-4e49-96cd-873df0e0fc3f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The device name will become updated as soon as you have called&amp;nbsp; the sd_ble_gap_device_name_set() function. So if the client reads the name characteristic after that, it will receive the new name and not the old one. This new name will however not be reflected in the advertisement until next time you update/configure the adv. payload, which usually is on the next startup when advertising_init() is executed again.&lt;/p&gt;
&lt;p&gt;Here I&amp;#39;ve put together based on the ble_app_uart project to show how the advertisement data can be updated while connected in case it helps:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK17.1.0_5F00_ble_5F00_app_5F00_uart_5F00_name_5F00_update.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK17.1.0_5F00_ble_5F00_app_5F00_uart_5F00_name_5F00_update.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>