<?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 more services with 128b UUID - ble_advdata_set() returns error 12 (exceed data limit)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1727/how-to-add-more-services-with-128b-uuid---ble_advdata_set-returns-error-12-exceed-data-limit</link><description>Hi,
I&amp;#39;m trying to add more user services to LBS demo. I generated 128b UUIDs for my services. Then I should add them to list returned by scan response in function advertising_init() - there are 2 structs:
ble_advdata_t advdata, scanrsp;
the secon one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Mar 2014 13:30:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1727/how-to-add-more-services-with-128b-uuid---ble_advdata_set-returns-error-12-exceed-data-limit" /><item><title>RE: How to add more services with 128b UUID - ble_advdata_set() returns error 12 (exceed data limit)</title><link>https://devzone.nordicsemi.com/thread/7595?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2014 13:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87ec1a4c-b6b9-49b5-afb3-59c72e4e6d20</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As you&amp;#39;ve found out, you can change advertising data at any time by just calling ble_advdata_set() again. Beware that you are by spec required to use the first two bytes of the manufacturer specific data for your company identifier, but this should already be taken care of in the ble_advdata_manuf_data_t struct.&lt;/p&gt;
&lt;p&gt;As for your other question, there is simply no easy way to advertise multiple 128-bit UUIDs. As you&amp;#39;ve found out, there isn&amp;#39;t room for two 128-bit UUIDs in one advertisement packet, so if you need more, the only option is to have one in the advertisement packet and one in the scan response. More than 2 is simply not possible, as there isn&amp;#39;t sufficient room in the packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add more services with 128b UUID - ble_advdata_set() returns error 12 (exceed data limit)</title><link>https://devzone.nordicsemi.com/thread/7594?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 17:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a68342d8-9354-4366-9f18-727bddc423d6</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;I know, but only one 128b UUID fits to 31B what if I have more services?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add more services with 128b UUID - ble_advdata_set() returns error 12 (exceed data limit)</title><link>https://devzone.nordicsemi.com/thread/7593?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2014 21:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:042e9548-0e15-44b9-a950-284c5f5b3af4</guid><dc:creator>Mihail</dc:creator><description>&lt;p&gt;You can add additional 31 bytes via second parameter of:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;uint32_t 	ble_advdata_set (const ble_advdata_t *p_advdata, const ble_advdata_t *p_srdata)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So you can pass additional ble_advdata_t for scan response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add more services with 128b UUID - ble_advdata_set() returns error 12 (exceed data limit)</title><link>https://devzone.nordicsemi.com/thread/7592?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2014 18:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00a2b9bf-0586-4e50-b154-015f7f42d6dc</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;I solved the second question by simply calling&lt;br /&gt;
err_code=ble_advdata_set(&amp;amp;advdata, NULL);
again when data is changed. A colleague wrote simple android app to display this manuf. spec. data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>