<?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>Advertising 128 bit UUID wrong parameter</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9355/advertising-128-bit-uuid-wrong-parameter</link><description>Hi, 
 I already used the sd_ble_uuid_vs_add for adding my base UUID in the internal table and it return a valid uuid_type (in my specific case it&amp;#39;s 0x06).
I need to add my UUID service into the advertising packet.
The UUIDs array is defined as follow</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Sep 2015 09:26:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9355/advertising-128-bit-uuid-wrong-parameter" /><item><title>RE: Advertising 128 bit UUID wrong parameter</title><link>https://devzone.nordicsemi.com/thread/34532?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 09:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31fd2076-124b-48bf-b7c8-f76851af6471</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If it works, I would guess you have done correctly. I&amp;#39;m having a bit of trouble understanding you though, could you include some more complete code that shows what you mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID wrong parameter</title><link>https://devzone.nordicsemi.com/thread/34531?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 14:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acf7f380-9b6c-4980-af70-f7c8a4ccfe96</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I see following ....
The ble_advdata_set is calling twice, the first time from ble_advertising_init and the second one from ble_advertising_start.
The ble_advertising_init is called inside the function I create the m_adv_uuids array and set it to the ble_advdata_t (in the uuid_complete.p_uuids). Inside, the function ble_advertising_init saves this pointer with following code :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_advdata.uuids_complete       = p_advdata-&amp;gt;uuids_complete;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Of course this pointer is valid at first call (it&amp;#39;s on the stack) but not valid in the second one.&lt;/p&gt;
&lt;p&gt;It means that my m_adv_uuids[] must be defined static and filled when I have the right value for m_com.uuid_type.
Now it works. Is it the right way ?&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t find any good documentation about it.&lt;/p&gt;
&lt;p&gt;Thanks,
Paolo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>