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

Cycling different advertising packets

Hello,

I know that similar questions have been asked before, but I am trying to schedule a number of 2 or 3 different advertising messages that I want to broadcast one after the other. A different one each advertising interval. I could use radio notifications, but they do not provide any information on the type of radio activity. How could I find out if an advertising packet has been sent or how can I get notified just before this is about to happen? I am connected to other devices and I am scanning as well. Any timeframe on an updated radio notification API? I've asked this a long time ago and got the answer that it was sent as a feature request.

Marius

  • Could you tell a bit more about your use-case? You want to broadcast multiple advertising data packets in a specific sequence - while handling connections and scanning at the same time? Is it timing-critical?

    Advertisements are not reliable enough on air to guarantee this, even without the other operations going. They are likely to collide, or advertise on the "wrong" channel.

    There is currently no direct way to detect advertisements being sent. Indirectly, you can see it with radio notifications (given no other traffic) or with scan request reporting enabled.

    I found your comment from earlier being tracked internally, but I am not sure if it is planned for any upcoming releases.

  • Sure, I want to offer the user the ability to broadcast different beacon data. Right now, that would be Eddystone, a custom message and iBeacon for Example. The order in which they are transmitted does not matter, nor does the timing, but it would be nice to have them transmitted at equal rates and without losing energy because of switching the data. I know, that I could use radio notifications, but without any data to go with, I can only guess what's going on and I wanted to have something a little more predictable and clean.

Related