<?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>Renaming device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21702/renaming-device</link><description>I&amp;#39;m trying to rename my device using s130, but the name doesn&amp;#39;t get applied. 
 I went back to the &amp;quot;roots&amp;quot;, ie the HRS sample. 
 Just before entering the loop, I add a name change: 
 advertising_start();

 ble_gap_conn_sec_mode_t sec_mode;

 BLE_GAP_CONN_SEC_MODE_SET_OPEN</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jul 2017 07:02:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21702/renaming-device" /><item><title>RE: Renaming device</title><link>https://devzone.nordicsemi.com/thread/85251?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 07:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02647445-6e45-4423-8861-b121f5c3cf33</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It should not stop your advertising. You need to check any error codes in the advertising_init fuction, to make sure it is not returning any errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Renaming device</title><link>https://devzone.nordicsemi.com/thread/85252?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2017 14:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0606681-f436-4bae-8aa0-16ef30720b83</guid><dc:creator>Jonathan</dc:creator><description>&lt;p&gt;When calling advertising_init, it actually caused my device to stop advertising (I was calling it while a central is connected).
I replaced with ble_advdata_set, it&amp;#39;s now working. I don&amp;#39;t know if it&amp;#39;s an expected behaviour, but I wanted to document it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Renaming device</title><link>https://devzone.nordicsemi.com/thread/85250?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 06:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18456239-acab-4337-81dd-b4289a49d04e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will have to update the advertising data after setting the new name, if you want the new name to be visible when advertising. This can be done by calling &lt;code&gt;advertising_init&lt;/code&gt;, or setting the advertising data directly using &lt;code&gt;ble_advdata_set&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>