This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BLE Advertising - Appearance

I'm working my way through BLE Advertising, a beginner'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?

Parents
  • After stepping through the debugger, I was able to pinpoint the error from

    name_encode()

    function which was returning NRF_ERROR_DATA_SIZE. The issue was that I had set

    advdata.short_name_len = 6;

    per the tutorial. When I changed it to 3 (as was shown later in the tutorial), it worked.

Reply
  • After stepping through the debugger, I was able to pinpoint the error from

    name_encode()

    function which was returning NRF_ERROR_DATA_SIZE. The issue was that I had set

    advdata.short_name_len = 6;

    per the tutorial. When I changed it to 3 (as was shown later in the tutorial), it worked.

Children
No Data
Related