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

How to know that a BLE transfer is finished

Hello,

I'm searching every where but i can't find what i want. Actually, i'm using two device and i really need to synchronise the execution of a process on both of them. 

So, the device n°1 send its request and execute the process. The device n°2 execute its process as soon as it receives the command. 

But, my probleme is that the device n°1 executes the process immediatly after the send function (i'm using ble_nus_c_string_send), and "ble_nus_c_string_send" returns the hand immediatly and doesn't wait to know if the frame has been really received by the other device. It there a way to know when the frame will be received by the other device before launching the execution of my process on my device n°1.

Best regards,

Aurélien

Here is my envrionment :

SDK : 15.3.0

SoftDevice : 6.1.1

IDE : Segger Embedded

Related