request_cb callback

HI
I’m currently using NCS 3.2.1, working with the periodic_adv_conn sample.
On the advertiser side, after receiving data from a node during each periodic sync broadcast, I want to include that node’s information in the next periodic advertising data.
I know that request_cb is called right before each periodic advertisement is transmitted to buffer the data.
What I want to find out is:
How long in advance of the actual periodic advertising transmission does the request_cb callback get triggered?
Thanks!
  • Hi,

    How long in advance of the actual periodic advertising transmission does the request_cb callback get triggered?

    The controller raises this event when it has buffer space ready. This can be up to one periodic interval before the requested data will be sent. The precise timing depends a bit on number of buffers and number of subevents configured. When the callback is called depends on what other threads are running, since the host has to pull the HCI event from thread mode.

    Regards,
    Terje

Related