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

send data more than 20 byte via ble_nus_string_send() nRF51 SDK 9

I want to send some data more than 20 bytes. I use ble_nus_string_send(&m_nus, tx_stuffed, 10); 3 times.

In the advertizer.c in the function on_ble_evt I insert code

case BLE_EVT_TX_COMPLETE: 
        b_ble_tx_complette = true;
        break;

But after first use

ble_nus_string_send(&m_nus, tx_stuffed, 10);

I don't receive my flag b_ble_tx_complette equal true; I can send 3 times

ble_nus_string_send(&m_nus, tx_stuffed, 20);
ble_nus_string_send(&m_nus, tx_stuffed + 20, 20);
ble_nus_string_send(&m_nus, tx_stuffed + 40, 20);

with success but without flag b_ble_tx_complette set. Why?

Parents Reply Children
No Data
Related