<?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>Modifications on Advertising initialization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1535/modifications-on-advertising-initialization</link><description>Hello, 
 I try to modify the advertising initialization to advertise only my custom service (BTS_UUID_SERVICE ). Objective is to hide (just during adv) others sig services. 
 I tried different things ( with and without scan response, with different</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2014 16:27:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1535/modifications-on-advertising-initialization" /><item><title>RE: Modifications on Advertising initialization</title><link>https://devzone.nordicsemi.com/thread/6819?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2014 16:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c4afd1b-9176-4593-adf9-9791befedbbd</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Could it be that m_bts.uuid_type have not been set at the time of advertising_init()? If so, you&amp;#39;ll get NRF_ERROR_INVALID_PARAMS back from ble_advdata_set(), which you can easily see by following the suggestion &lt;a href="https://devzone.nordicsemi.com/index.php/debugging-techniques-adding-custom-profile-services#reply-4772"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If this is the problem, you can most likely fix it by changing the order of services_init() and advertising_init() in main, assuming that the call to sd_ble_uuid_vs_add() gets called from services_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>