<?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 for custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91624/advertising-128-bit-uuid-for-custom-service</link><description>Hi, 
 What macro should be used in the bt_data ad struct in order to advertise a custom 128 bit UUID? I have tried the following: BT_UUID_128_ENCODE(BT_UUID_CUSTOM_SERVICE). 
 Thanks, 
 Adam</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Sep 2022 19:41:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91624/advertising-128-bit-uuid-for-custom-service" /><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/388225?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 19:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52bae897-fd62-487e-bca5-4a45aa1a23c7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sniffer is a setup to trace and log the Bluetooth LE traffic with details of packet data so that we can understand the flow of data between peers.&lt;/p&gt;
&lt;p&gt;There are few tutorials like &lt;a href="https://www.youtube.com/watch?v=Sccst1loWbU"&gt;this &lt;/a&gt;one that can be useful for you.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_UG_v2.2.pdf"&gt;user guide for the nRF sniffer is given here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/388130?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 12:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a915cf94-37d2-4dd4-99d8-bf87e395fa40</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;What is a sniffer trace and how do I provide you with one?&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/387623?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 08:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a1f66e-daa1-4102-8043-9115fdd13858</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Adam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just tested this and I see full name in the nrf connect desktop and the services.&lt;/p&gt;
&lt;p&gt;Can you provide me a sniffer trace of your data that is being transmitted by the advertiser, it looks right on my side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/387602?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 06:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ffeb175-64bb-4c0f-88ec-256715e182f6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry Adam,&lt;/p&gt;
&lt;p&gt;I missed to follow this up, I will test this today, should not take too long, sorry for delays.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/386760?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 04:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec3210e5-3c68-4b46-aa1b-b7f0cec2dfdc</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Is there any update on this please? It has&amp;nbsp;been nearly two weeks.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385595?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2022 03:28:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc207d8a-d638-452a-805f-8ecefde339be</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;I am using NCS v2.00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385463?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 09:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d19cedaa-156a-4614-ac0a-adef6af09a8c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Which SDK version are you using Adam, Unable to compile your code in SDKv2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385369?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 15:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6e6b24f-3fd7-43a7-bb09-e881426996b7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I will try to test this tomorrow, I think you have given me all the information needed to replicate your setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385263?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b4e2549-fb68-415d-b3f2-380acd1edb76</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Sorry Susheel, I am still confused as to why I cannot see the full name...&lt;/p&gt;
&lt;p&gt;In addition to the code that I have already attached, this is what I have in my prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;abcdefghigklmnop&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is what I see on the Android nRF Connect app:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/advertising-issue.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385165?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 07:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:738b8994-e20f-42f0-81e1-dce43d02883e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I was only calculating the actual payload and excluding the headers and other overheads.&lt;/p&gt;
[quote user="adam_atmo"]I don’t have an issue with this when I am not sending scan response data. [/quote]
&lt;p&gt;i believe that you have a solution with this configuration when you are using scan response data aswell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385149?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 05:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21ae3f5f-548c-4bf7-bb39-27161a8fd715</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Thanks Susheel,&lt;/p&gt;
&lt;p&gt;However, it seems that it is the introduction of the&amp;nbsp;SD data that limits the length of the name. I don&amp;rsquo;t have an issue with this when I am not sending scan response data. Have you included the SD data in your calculation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385143?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 04:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb0fad0b-5df9-438d-acec-e98805d93232</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;the ad seems to be of total bytes of 2 (flags) + 1 type for flags + 6 (HTS+DIS+BAS) + 1 (type for HTS/DIS/BAS) + 1 (length field)&amp;nbsp; = 11 bytes.&lt;/p&gt;
&lt;p&gt;So you have 27-11 = 16 bytes for device name + type and length, which equals 14 bytes of actual device name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/385137?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 02:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6194cce0-fc01-411f-a35f-c873554b93d9</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Sure, attached below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct bt_data ad[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
	BT_DATA_BYTES(BT_DATA_UUID16_ALL,
		      BT_UUID_16_ENCODE(BT_UUID_HTS_VAL),
			  BT_UUID_16_ENCODE(BT_UUID_DIS_VAL),
		      BT_UUID_16_ENCODE(BT_UUID_BAS_VAL)),
			  { /* TX power adv data */},
};

/* Scan response data.
 * Includes 128 bit UUID for custom RSSI service.
 */
static const struct bt_data sd[] = 
{
	BT_DATA_BYTES(BT_DATA_UUID128_ALL, RSSI_SERVICE_UUID),
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384852?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 16:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba228296-1aa0-4f85-baf9-a15915a20944</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="adam_atmo"]Could this be because the advertising packet is too long to fit the full device name?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It most likely is too long. How did you split the adv data and the scan response data? Can you show us your new declaration for&amp;nbsp;&lt;strong&gt;ad&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;sd?&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384691?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 05:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d7e429-b649-4665-9a07-6dd74c9ed25b</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;It works now - I was not sending the sd data originally.&lt;/p&gt;
&lt;p&gt;However, now the device name is not printing in full whenever I&amp;nbsp;include sd data. I don&amp;#39;t have this issue when I am not sending sd data. Could this be because the advertising packet is too long to fit the full device name?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384689?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 05:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18ff7f7-3c88-4f79-b67a-a9ce5b919e42</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have you split the data you were advertising into advertising data and scan response data in &lt;a href="https://docs.zephyrproject.org/3.1.0/connectivity/bluetooth/api/gap.html#group__bt__gap_1gad2e3caef88d52d720e8e4d21df767b02"&gt;bt_le_adv_start&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the below code snippet, all data is under&amp;nbsp;&lt;em&gt;&lt;strong&gt;ad&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt; which is advertising data. You should split this into two&amp;nbsp;&lt;em&gt;&lt;strong&gt;ad&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;&lt;em&gt; sd&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;static struct bt_data ad[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
	BT_DATA_BYTES(BT_DATA_UUID16_ALL,
		      BT_UUID_16_ENCODE(BT_UUID_HTS_VAL),
			  BT_UUID_16_ENCODE(BT_UUID_DIS_VAL),
		      BT_UUID_16_ENCODE(BT_UUID_BAS_VAL)),
	BT_DATA_BYTES(BT_DATA_UUID128_ALL, RSSI_SERVICE_UUID),
};&lt;/pre&gt;&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384688?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 05:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c26aff3-45a5-4e20-92a3-ddcd9ab0ffbb</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;I don&amp;#39;t see anything about active scanning?&lt;/p&gt;
&lt;p&gt;If it does do active scanning, surely I would be able to see the 128 bit UUID? Currently I cannot see this UUID when the device is advertising and this is required.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384684?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 03:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f8e90e-af49-4967-b811-01aa656ef6d6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;nRF Connect on mobile on Android by default does active scanning. So it sends the scan request to advertiser by default.&lt;/p&gt;
&lt;p&gt;If you go in the app-&amp;gt;Settings-&amp;gt;Scanner-&amp;gt;you see all the settings for the mobile scanner there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384679?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 02:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9eb12d3-3d7a-4369-91ef-5e4b51ba8c3a</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;How do I request scan response data on Android nRF Connect?&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384670?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 01:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e94338e1-ee22-4b95-a827-92ce7a5937c1</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="adam_atmo"]2. Or would it be a better idea to just include the 128 but UUID in the scan response &lt;em&gt;sd&lt;/em&gt; data? If so, I am using the Android nRF Connect app - how do I request scan response data so that I can see the 128 bit UUID.[/quote]
&lt;p&gt;I would suggest you to split this advertising data into advertising data and scan response data.&amp;nbsp;&lt;/p&gt;
[quote user="adam_atmo"]4. Also, what is the max size in bits for a legacy advertising packet?[/quote]
&lt;p&gt;We have 31 bytes of payload data that we can put in advertising or scan response data. So together you can put 31 + 31 = 62 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384499?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 07:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4add123f-2cb7-4c99-a053-ea845b9a0b46</guid><dc:creator>adam_atmo</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;I have attached the relevant code below. I am now getting the following error: &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;too big advertising data&lt;/strong&gt;&lt;/span&gt;. It works perfectly when I leave out the other SIG defined UUIDs. The error probably occurs because I am already advertising three other SIG defined services.&lt;/p&gt;
&lt;p&gt;1. Is there anyway to encode this 128 bit data into a smaller number that can be advertised?&lt;/p&gt;
&lt;p&gt;2. Or would it be a better idea to just include the 128 but UUID in the scan response &lt;em&gt;sd&lt;/em&gt; data? If so, I am using the Android nRF Connect app - how do I request scan response data so that I can see the 128 bit UUID.&lt;/p&gt;
&lt;p&gt;3. Any other suggestions?&lt;/p&gt;
&lt;p&gt;4. Also, what is the max size in bits for a legacy advertising packet?&lt;/p&gt;
&lt;p&gt;Thanks so much,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my advertising struct:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct bt_data ad[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
	BT_DATA_BYTES(BT_DATA_UUID16_ALL,
		      BT_UUID_16_ENCODE(BT_UUID_HTS_VAL),
			  BT_UUID_16_ENCODE(BT_UUID_DIS_VAL),
		      BT_UUID_16_ENCODE(BT_UUID_BAS_VAL)),
	BT_DATA_BYTES(BT_DATA_UUID128_ALL, RSSI_SERVICE_UUID),
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In my &lt;strong&gt;service.h&lt;/strong&gt; file, I have the following:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define RSSI_SERVICE_UUID 0xb4, 0xa0, 0x76, 0x45, 0xE9, 0x47, 0xC5, \
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; 0x93, 0x9D, 0x9D, 0x03, 0x45, 0x76, 0xA0, 0xB4, 0x49&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In my &lt;strong&gt;service.c&lt;/strong&gt; file, I have the following:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BT_UUID_RSSI_SERVICE            BT_UUID_DECLARE_128(RSSI_SERVICE_UUID)&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 128 bit UUID for custom service</title><link>https://devzone.nordicsemi.com/thread/384476?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 04:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9325a34f-8333-4d73-8fc5-f0591558eb53</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Probably some&amp;nbsp;code snippets that you used might help us see the issue. What kind of errors are you getting?&lt;/p&gt;
&lt;p&gt;The eddystone sample uses below initialization to advertise all of 128 bit UUID, just an example to show you.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static const struct bt_data ad[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
	/* Eddystone Service UUID a3c87500-8ed3-4bdf-8a39-a01bebede295 */
	BT_DATA_BYTES(BT_DATA_UUID128_ALL,
		      0x95, 0xe2, 0xed, 0xeb, 0x1b, 0xa0, 0x39, 0x8a,
		      0xdf, 0x4b, 0xd3, 0x8e, 0x00, 0x75, 0xc8, 0xa3),
};&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="left:97px;top:-20px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>