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

How to find out when BLE_NUS has successfully send a packet?

Hello everyone,

Currently I'm altering the "ble_app_uart" and "ble_app_uart_c" examples (both under examples/ble_peripheral) to suit my needs. What I currently need to know is exactly when the packet has arrived on the other side. To my understanding the Bluetooth part will receive an acknowledgement on successful transmission, so this should technically be possible. However, I don't know what event will be triggered (so that I can attach some code under the event handler) in that case. Does anyone else do?

Many thanks for your help.

Edit: To clarify, the Enhanced ShockBurst protocol for example has an event "NRF_ESB_EVENT_TX_SUCCESS", under the nrf_esb_event_handler, which is triggered whenever an acknowledgement has been received.

Related