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

Android BLE for direct advertisment.

Hi, I am trying to write a small android app to send direct advertisement to particular device. i am using 0001 for direct advertisment. But when i advertise the data, message is received for all the devices. can you let me know or share an example for this in android.

Thank you Rohit Iti

Parents
  • There's no such thing as directed advertisement with data. The ADV_DIRECT_IND mode's payload consists only of the advertiser and initiator's device addresses.

    Nor do I know what you mean by 'i am using 0001 for directed advertising', either way, if you are actually setting up ADV_DIRECT_IND then you shouldn't have any data in it. So if you do, I wonder if you are actually in the correct advertising mode.

    Advertising packets are received by all devices. Advertised data is public.

Reply
  • There's no such thing as directed advertisement with data. The ADV_DIRECT_IND mode's payload consists only of the advertiser and initiator's device addresses.

    Nor do I know what you mean by 'i am using 0001 for directed advertising', either way, if you are actually setting up ADV_DIRECT_IND then you shouldn't have any data in it. So if you do, I wonder if you are actually in the correct advertising mode.

    Advertising packets are received by all devices. Advertised data is public.

Children
Related