<?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>How to set the length of the advertising device name?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/556/how-to-set-the-length-of-the-advertising-device-name</link><description>Hi, 
 How to set the length of the advertising device name? Even i set name type to BLE_ADVDATA_FULL_NAME, i can only able to set maximum of 14bytes. If i increase the name size further, advertising is not happening, i&amp;#39;m not sure what is happening when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2017 06:24:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/556/how-to-set-the-length-of-the-advertising-device-name" /><item><title>RE: How to set the length of the advertising device name?</title><link>https://devzone.nordicsemi.com/thread/2872?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 06:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa9b27fd-d536-49db-b6b9-8845e3b81ed0</guid><dc:creator>littlemingsmw</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am doing a &amp;quot;Bluetooth low energy Advertising, a beginner&amp;#39;s tutorial&amp;quot;. One of the challenges is change the advertising name type, the provided commands are same as yours,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;init.advdata.name_type               = BLE_ADVDATA_SHORT_NAME;
init.advdata.short_name_len          = 6;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, the advertisement name still showed full name as before after I modified the code as above, compiled and downloaded it to my nEF52-DK. It is did not make sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the length of the advertising device name?</title><link>https://devzone.nordicsemi.com/thread/2871?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 12:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da991cb5-016c-497a-b003-718650f8e88b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Please take a look at &lt;a href="https://devzone.nordicsemi.com/index.php/what-s-the-maximum-size-for-an-advertisement-package"&gt;this question&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you can live with not advertising the full name, you can consider advertising just parts of the name instead, for example like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
    advdata.name_type               = BLE_ADVDATA_SHORT_NAME;
    advdata.short_name_len          = 10;

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will include only 10 bytes of the name in the advertisement package. The other alternative is to move some data to the scan response, by passing a second ble_advdata_t to ble_advdata_set().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>