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

Queued message count at start of Connection Interval

If we want to make certain that a particular message goes first on a connection interval. Is there a way to check that there is none already internally queued?

Is this possible? Pseudo code below

app_ble_radio_notification_handler (active)

    if active

         if 0 == queued_tx_messages()

             queue_message(handle)

The reason I'm asking is because we can control the messages that we synchronously send to Central but messages that are generated by Central, example read request of a particular characteristic, will generate an internal response that will be transparent to peripheral.

Related