Best way to rewrite advertisement data

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I want to change  the advertisement data from packet to packet.  Looks like I can do this with the fine timer callback.

However, I'd prefer a callback that happens just before (or just after) the packet is sent.

That way I know my new advertisement data will affect exactly one packet.

Is there such a callback?  Or is there another good way to control the adv packet contents on the individual packet level?

0 Likes
1 Solution

This is possible, in theory, because the adv starts almost immediately after the stack (below the app) issues the start advertisement command to the FW. But if there are other higher priority tasks, the start of the adv can get delayed by a few mS.

But you have to remember that the adv packets last a very short time, so the intended target might not get the data unless it is scanning at a very high duty cycle (and burning power).

View solution in original post

9 Replies