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

Advdata packet sequence

Hello all

I am trying to better understand the sequence in which all the data is encoded in to the advdata structure. This includes device name, company identifier, manuf specific data, UUID's etc. Is there any documentation which details in which sequence all of this data is encoded?

Best Prasanna

Parents
  • You can put it in any order you like. If you want to see the order in which the standard Nordic encoded encodes it, look at the code.

    I've always thought it rather odd that it doesn't encode, or at least give you the option to encode, the name at the end instead of the start, as that would at least give it the option to fill most of the packet up and then use a short name instead of a full one if there wasn't room. But it doesnt.

Reply
  • You can put it in any order you like. If you want to see the order in which the standard Nordic encoded encodes it, look at the code.

    I've always thought it rather odd that it doesn't encode, or at least give you the option to encode, the name at the end instead of the start, as that would at least give it the option to fill most of the packet up and then use a short name instead of a full one if there wasn't room. But it doesnt.

Children
Related