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

ble_nus_string_send() busy wait or interrupt

Hi,

I am working on an application which sometimes needs to send a buffer of a couple of KB to a connected smartphone using the nordic uart service.

The function used is ble_nus_string_send() and it can send a maximum amount of 20 characters at a time.

Is there a way to exactly know when the 20 characters finished sending so I can call the function with the next 20 chars, either via busy waiting or a callback? Currently I used a fixed delay and it is not optimal.

Many thanks, Josef

Parents Reply Children
No Data
Related