I am using bt_nus_send to send data via BLE every 1ms. I've noticed that when connection is bad, this function takes a couple of milliseconds to execute, while when connection is good it is only ~100us.
I am not sure if this function is blocking until it sends the data, or it puts the data into some buffer (I see that at some point net_buf_put is called) end exits. Why do I get different execution times?