<?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>I am not able to add service data to the advertisement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92428/i-am-not-able-to-add-service-data-to-the-advertisement</link><description>Hi team, 
 I am using NRF52833 DK with PCA10100 on it and s140 soft device version.. 
 
 I added service data in advertising_init() function in ble_app_uart example code , but while scanning in mobile it is not showing the service data. 
 While debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 12:34:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92428/i-am-not-able-to-add-service-data-to-the-advertisement" /><item><title>RE: I am not able to add service data to the advertisement</title><link>https://devzone.nordicsemi.com/thread/388778?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79b3bca3-e8af-4dfb-8847-7b09c642a55e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi. &lt;/p&gt;
&lt;p&gt;The fault is probably with the ble_advdata_encode() function. It seems you are trying to add too much data.&lt;/p&gt;
&lt;p&gt;NRF_ERROR_DATA_SIZE - If the operation failed because not all the requested data could fit into the provided buffer or some encoded AD structure is too long and its length cannot be encoded with one octet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>