This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to make the Complete Local Name be at the start of a RAW data?

Development Software: SES v4.16

Computer Platform: macOS v10.14.4

Hardware: nRF52832QFAAB0

Hello, everyone~

I feel confuse that how to make the Complete Local Name be at the start of a RAW data?

There is two pictures:

What I want:

But now:

Begging for help!

Parents
  • Hi,

    Most SDK examples use ble_advdata_encode() to build the advertising packet. Assuming that is the case for you as well, you can change the order of the data by simply changing the order of the if statements within the function. The default implementation always encodes the name last. You can move this as high as you want (note that in that case it will not be automatically truncated in case there is not room for everything int he advertising packet).

Reply
  • Hi,

    Most SDK examples use ble_advdata_encode() to build the advertising packet. Assuming that is the case for you as well, you can change the order of the data by simply changing the order of the if statements within the function. The default implementation always encodes the name last. You can move this as high as you want (note that in that case it will not be automatically truncated in case there is not room for everything int he advertising packet).

Children
Related