I am trying to send 20 notifications inside a loop. I am able to send 7 of these and receive the following error. What does this mean? Also, is there a central document that lists error codes? I have not been able to find one.
This is what I did: to get your event:
evt = osMessageGet(ble_stack_msg_box, osWaitForever); // wait for message
And put a flag in this event:
case BLE_EVT_TX_COMPLETE :
gBleSentSuccessfully = true;
break;
On while you need to send data, do this:
while (gBleSentSuccessfully == false) {
osThreadYield();
}
err_code = ble_srs_send_packet(&m_srs, pBuf, length);
Hello, I got the same problem and I have implémented the same flag for the BLE_EVT_TX_COMPLETE :
case BLE_EVT_TX_COMPLETE :
my_flag= true;
break;
but this slows down the streaming so much. the stack ACK is slow compared to streaming data..