<?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 completely remove a service from advertising ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26858/how-to-completely-remove-a-service-from-advertising</link><description>Hi all, 
 My goal is to use all the advertising data for beaconing, and also be connectable with the NUS service. 
In order to save space for the beacon data I would like to remove all the service uuids from the advertising. 
 1 - Is it possible ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2017 20:08:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26858/how-to-completely-remove-a-service-from-advertising" /><item><title>RE: How to completely remove a service from advertising ?</title><link>https://devzone.nordicsemi.com/thread/105581?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 20:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07de01b7-529f-4c08-b4dd-9eb2785baf1b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;If by &lt;em&gt;&amp;quot;beaconing&amp;quot;&lt;/em&gt; you mean Apple iBeacon or similar standard format then it leaves you anyway no space for UUID list AD element which would contain NUS 16-byte UUID. So anyway you will need to choose one or another (or juggle with adv. data content and send one and one). Anyway beside Flags AD object which is compulsory for BLE devices compliant to GAP (which is the case of nRF5x FWs which are using Soft Device and GAP&amp;amp;GATT API functions to start/stop advertisements etc.) you can place whatever to Advertising and Scan Response data (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gaddbb12e078d536ef2e93b41d77ff6243"&gt;S13x and S140 are using the only function call for that: &lt;code&gt;uint32_t 	sd_ble_gap_adv_data_set (uint8_t const *p_data, uint8_t dlen, uint8_t const *p_sr_data, uint8_t srdlen)&lt;/code&gt;&lt;/a&gt;). Just make sure that it&amp;#39;s formatted in GAP AD Length-Tag-Value format and that any of these string don&amp;#39;t exceed 31 bytes in total (restriction for BLE 4.0-4.2 broadcasting).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>