<?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 add custom UUID as part of BLE Advertisement packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44915/how-to-add-custom-uuid-as-part-of-ble-advertisement-packet</link><description>Hi all, 
 In Nordic SDK ble_app_gls Example , the following UUID is added as part of Advertisement packet 
 static ble_uuid_t m_adv_uuids[] = /**&amp;lt; Universally unique service identifiers. */ { {BLE_UUID_GLUCOSE_SERVICE, BLE_UUID_TYPE_BLE}, {BLE_UUID_BATTERY_SERVICE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Mar 2019 10:27:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44915/how-to-add-custom-uuid-as-part-of-ble-advertisement-packet" /><item><title>RE: How to add custom UUID as part of BLE Advertisement packet</title><link>https://devzone.nordicsemi.com/thread/176659?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 10:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:949451ab-8344-4ca0-b4d3-c09f0c73c9b2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Deepa&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t use BLE_UUID_TYPE_VENDOR_BEGIN, register the UUID you need with sd_ble_uuid_vs_add() and use the return from that function as MY_UUID_TYPE&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know where the practice of trying to use that constant came from, it&amp;#39;s always been wrong.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add custom UUID as part of BLE Advertisement packet</title><link>https://devzone.nordicsemi.com/thread/176631?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 09:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86156d89-607e-4fa5-a1ce-57a45d5f9a42</guid><dc:creator>Deepa Gopinath</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&lt;br /&gt; init.advdata.uuids_complete.p_uuids = m_adv_uuids;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The above initialisation is already taken care in Nordic SDK ble_app_gls Example, at&amp;nbsp;advertising_init().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It works only for BLE SIG UUID but it is not working for Custom service UUID?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Thanks &amp;amp; Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Deepa&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add custom UUID as part of BLE Advertisement packet</title><link>https://devzone.nordicsemi.com/thread/176607?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 07:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc93bcb-1126-4c09-87ea-decdfe66017c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Deepa&lt;/p&gt;
&lt;p&gt;You should be able to advertise your UUID by adding the following to your advertising init():&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;advdata.uuids_complete.p_uuids&amp;nbsp; = m_adv_uuids;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>