<?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>is it possible to change the device name handle value manually?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/750/is-it-possible-to-change-the-device-name-handle-value-manually</link><description>Hi, 
 I know that the default handle value of device name is 3, but in my application i am not getting the default device name handle, is it possible to change the device name handle manually? I have created one custom service with lot of characteristics</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2017 10:20:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/750/is-it-possible-to-change-the-device-name-handle-value-manually" /><item><title>RE: is it possible to change the device name handle value manually?</title><link>https://devzone.nordicsemi.com/thread/3796?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 10:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a9a36f6-0d2d-42ce-94a4-3a5946ecdf72</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;hi Ole,
I tried to call ble_advdata_set() after calling sd_ble_gap_device_name_set(), but iam getting INVALID_PARAM_ERROR(error no. 7) on ble_advdata_set(), kindly help me solving this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is it possible to change the device name handle value manually?</title><link>https://devzone.nordicsemi.com/thread/3795?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2013 09:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62339225-45c5-42d1-9acd-780ae9566586</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;There shouldn&amp;#39;t be any way to affect the device name handle, it should be constant for a certain softdevice version, and as far as I know, all softdevice version up until now have had the name at handle 3.&lt;/p&gt;
&lt;p&gt;To set the name, you should however use the sd_ble_gap_device_name_set() method instead of doing it directly with the handle, as that will be portable to all future softdevice version as well. The handle may however be useful when receiving a write to this characteristic.&lt;/p&gt;
&lt;p&gt;Also, if you&amp;#39;re advertising while changing the name, you have to make sure to set up the advertising data again, essentially calling ble_advdata_set() again, after having changed the name, since this can&amp;#39;t be done automatically.&lt;/p&gt;
&lt;p&gt;If you still have trouble, I&amp;#39;d be glad if you could upload your project, so that I can have a look. Feel free to create a support case for it if you need it to be handed in confidentiality.&lt;/p&gt;
&lt;p&gt;As for looking on ble_evt_t, there shouldn&amp;#39;t be any problems with this, but remember to not compile with -O3 if you want to be able to debug the code in a line-by-line fashion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>