<?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>Meaning of error codes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18321/meaning-of-error-codes</link><description>I have modified the template&amp;#39;s code so ble_advertising_init should setup manufacturer data, once I have this assignment: 
 advdata.p_manuf_specific_data = &amp;amp;manuf_data; 
 then a call to ble_advertising_init fails with error code 0x0000000C but the documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Dec 2016 07:15:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18321/meaning-of-error-codes" /><item><title>RE: Meaning of error codes</title><link>https://devzone.nordicsemi.com/thread/70745?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2016 07:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6628b1fe-4778-44d2-8c36-a9348ce413c9</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;I figured out why my attempt to shorten the DEVICE_NAME didn&amp;#39;t help at that time - that is because I specified name_type as BLE_ADVDATA_SHORT_NAME and short_name_len was already small enough which resulted in the name shorter than even my shortened full name that is why I didn&amp;#39;t see a difference.
Once I replaced BLE_ADVDATA_FULL_NAME with BLE_ADVDATA_SHORT_NAME - then I can confirm that I was able to reduce Adv Packet Size by reducing DEVICE_NAME or Manufacturer Data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Meaning of error codes</title><link>https://devzone.nordicsemi.com/thread/70744?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2016 09:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b8fa2f0-487e-4bc5-a756-b356a4564bd6</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;Thank you Alex, you are right, I debugged the function and saw that NRF_ERROR_DATA_SIZE is indeed returned but it was returned from within name_encode rather than from manuf_specific_data_encode, so, in fact it could not encode the Name because Manufacturer Specific Data was long but what is interesting is that shortening the name didn&amp;#39;t help at all - I was only able to get rid of the error by shortening the Manufacturer Data
OR
setting advdata.include_appearance to false.&lt;/p&gt;
&lt;p&gt;Is this expected? I assumed that it should not matter whether I reduce the Name or Manufacturer data as long as total of my advertising data fits into 31 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Meaning of error codes</title><link>https://devzone.nordicsemi.com/thread/70746?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2016 09:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f379c8-f076-473c-80fe-8ac30f09ad7a</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;You probably need to step inside that function. Most likely ble_advdata_set() returns error and it is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_ERROR_DATA_SIZE                   (NRF_ERROR_BASE_NUM + 12) ///&amp;lt; Data size exceeds limit
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in nrf_error.h, your manuf_data is too big, check size of your advertising packet, what is included in it and how much adata you can add as manuf_data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>