<?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>BLE Advertising - Appearance</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18557/ble-advertising---appearance</link><description>I&amp;#39;m working my way through BLE Advertising, a beginner&amp;#39;s tutorial and getting a SDK error 4001 when trying to use 
 
 advdata.include_appearance =
true; 
 
 Can anyone point me in the right direction as to resolving this?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 24 Dec 2016 17:08:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18557/ble-advertising---appearance" /><item><title>RE: BLE Advertising - Appearance</title><link>https://devzone.nordicsemi.com/thread/71617?ContentTypeID=1</link><pubDate>Sat, 24 Dec 2016 17:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7565455-0f34-4fb0-b074-0c30707781f3</guid><dc:creator>Jim Hewitt</dc:creator><description>&lt;p&gt;After stepping through the debugger, I was able to pinpoint the error from&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;name_encode()&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;function which was returning NRF_ERROR_DATA_SIZE. The issue was that I had set&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;advdata.short_name_len = 6;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;per the tutorial. When I changed it to 3 (as was shown later in the tutorial), it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Advertising - Appearance</title><link>https://devzone.nordicsemi.com/thread/71616?ContentTypeID=1</link><pubDate>Sat, 24 Dec 2016 17:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28cac267-ca71-453a-8077-7b9b9097a991</guid><dc:creator>Jim Hewitt</dc:creator><description>&lt;p&gt;@Martin After stepping through the debugger, I was able to pinpoint the error from &lt;code&gt;name_encode&lt;/code&gt; function which was returning NRF_ERROR_DATA_SIZE.  The issue was that I had set &lt;code&gt;advdata.short_name_len&lt;/code&gt; to 6.  When I changed it to 3, it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Advertising - Appearance</title><link>https://devzone.nordicsemi.com/thread/71615?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 08:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74126d17-7cca-4b04-b779-30a71fe610a1</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi. That&amp;#39;s pretty strange. So it worked before, but not after adding appearance? Nothing else was changed? What SDK to you use? Error 4001 is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_FAULT_ID_SDK_ERROR       NRF_FAULT_ID_SDK_RANGE_START + 1 /**&amp;lt; An error stemming from a call to @ref APP_ERROR_CHECK ....
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Have you tried stepping through your code with a debugger trying to find this particular APP_ERROR_CHECK()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>