NCS mutiple_adv_sets get adv index

Hello,

When I use the sample mutiple_adv_sets in NCS v2.5.0,

I am wondering if there is a way to print the index of each AD after it has been started, so as to distinguish between different ads when they are sent (such as bt_le_ext_adv_get_index(),

but I don't know where to call it after each AD has started).

ps. Instead of unpacking packets at the receiver to distinguish between different advertising packets, they are immediately differentiated when they are sent.

Thank you

Parents
  • Hi

    I think you might be mixing up advertising sets and advertisements here, and the multiple_adv_sets sample does not seem to be relevant to this question really. It seems like you want to get the index for every single advertisement packet, which is not possible I'm afraid. 

    If you do in fact want to differentiate the advertising sets, you can do so with extended advertising and the bt_le_ext_adv sets, which is used when setting up and starting the advertisement set, and also used with the get index function you mentioned. 

    Best regards,

    Simon

Reply
  • Hi

    I think you might be mixing up advertising sets and advertisements here, and the multiple_adv_sets sample does not seem to be relevant to this question really. It seems like you want to get the index for every single advertisement packet, which is not possible I'm afraid. 

    If you do in fact want to differentiate the advertising sets, you can do so with extended advertising and the bt_le_ext_adv sets, which is used when setting up and starting the advertisement set, and also used with the get index function you mentioned. 

    Best regards,

    Simon

Children
Related