<?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>Two calls to sd_ble_uuid_vs_add with same parameter fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10123/two-calls-to-sd_ble_uuid_vs_add-with-same-parameter-fails</link><description>I&amp;#39;m using nrf51-ble-driver_win_0.4.1 to connect BLE devices on PC. When device has a 128bits UUID, you have to call sd_ble_uuid_vs_add( &amp;amp;uuid128, &amp;amp;p_type ) to register the 128bits UUID and get a VENDOR type (p_type). 
 But, if your device has two 128bits</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Nov 2015 12:23:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10123/two-calls-to-sd_ble_uuid_vs_add-with-same-parameter-fails" /><item><title>RE: Two calls to sd_ble_uuid_vs_add with same parameter fails</title><link>https://devzone.nordicsemi.com/thread/37548?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 12:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ec1922-8811-4015-abf3-bb28d014d121</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;I, personally, cannot speak for the nrf51-ble-driver, but the latest SoftDevices already have this change. Once a driver based on these is out, it should be included. For now you should avoid adding things multiple times, or expect NRF_ERROR_FORBIDDEN to occur every now and then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two calls to sd_ble_uuid_vs_add with same parameter fails</title><link>https://devzone.nordicsemi.com/thread/37547?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 10:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9446fe4-2e27-4113-9121-0f66132af671</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Thanks, if that&amp;#39;s already adressed in next versions, it&amp;#39;s great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two calls to sd_ble_uuid_vs_add with same parameter fails</title><link>https://devzone.nordicsemi.com/thread/37546?ContentTypeID=1</link><pubDate>Sat, 07 Nov 2015 15:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:465b50e5-e690-4a34-8ee5-f50f950eec64</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is all according to the documentation. The return values for &lt;strong&gt;sd_ble_uuid_vs_add&lt;/strong&gt; are described like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_SUCCESS	Successfully added the Vendor Specific UUID.
NRF_ERROR_INVALID_ADDR	If p_vs_uuid or p_uuid_type is NULL or invalid.
NRF_ERROR_NO_MEM	If there are no more free slots for VS UUIDs.
NRF_ERROR_FORBIDDEN	If p_vs_uuid has already been added to the VS UUID table.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In a later version of the SoftDevices, this has been changed to simply return NRF_SUCCESS and the already-assigned type.&lt;/p&gt;
&lt;p&gt;Please also do a search for &amp;quot;sd_ble_uuid_vs_add&amp;quot; here and you will find many similar questions with helpful answers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>