<?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 put the device name to the Advertising scan response ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21801/how-to-put-the-device-name-to-the-advertising-scan-response</link><description>Hi 
 Now I&amp;#39;m using sdkv12.2 and S132 on nRF52832. All the examples in the SDK put the device name in the advertising data packet. However, for our applicaiton, we need to put some special data in the advertising data packet and limit to the 31 bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 May 2017 10:33:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21801/how-to-put-the-device-name-to-the-advertising-scan-response" /><item><title>RE: How to put the device name to the Advertising scan response ?</title><link>https://devzone.nordicsemi.com/thread/85649?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 10:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11d7c0f9-b9d8-4d56-abf5-a09a951fee34</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This can be done in the &lt;code&gt;advertising_init()&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;Code snippet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void advertising_init(void)
{
	.
	.
    ble_advdata_t          scanrsp;

    memset(&amp;amp;scanrsp, 0, sizeof(scanrsp));
    scanrsp.name_type               = BLE_ADVDATA_FULL_NAME;
	.
	.
    err_code = ble_advertising_init(&amp;amp;advdata, &amp;amp;scanrsp, &amp;amp;options, on_adv_evt, NULL);
    APP_ERROR_CHECK(err_code);
	.
	.
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Remember to remove the &lt;code&gt;advdata.name_type = BLE_ADVDATA_FULL_NAME;&lt;/code&gt; that is used to place the name in the advertising data packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>