Execution time of bt_nus_send

Hi,

This is the follow up on this question, I'm not sure how it was closed.

I'm getting different execution times (not transmission time, like mentioned in the answer here) for `bt_nus_send` function, although in the above mentioned post it is said that the function is not blocking. So, I'm wondering why sometimes the function takes a couple of milliseconds to execute if it is not blocking.

In most cases it is stable, and around ~100 microseconds, but I think when there is a problem with connection, I get a couple of milliseconds. If the function only queues data in the SoftDevice controller's FIFO for transmission in the next connection event, I expect similar execution times each time the function is called.

What could be the cause of the problem?

Related