1 month ago
Trigger sending an advertising packet immediately
Posted bythomas.linder40 points 1 replyHi
I am trying to send a single advertising packet when something happens immediately. Is there some way to do this? I found that if I call app_easy_gap_undirected_advertise_start(), this will not trigger sending it immediately but will only queue it (or at least it looks like it when I log packets)
1 month ago
Hi thomas.linder,
Thanks for your question. When the app_easy_gap_undirected_advertise_start() is the device already advertising, or not?
When calling the app_easy_gap_undirected_advertise_start(), the app_advertise_start_msg_send() is also executed in order to send the advertise_start_msg message to the stack. After that the message is added to the queue until the scheduler runs and decides to serve the message. The rwip_schedule() schedules all pending events.
Thanks, PM_Dialog