Tool/software: TI-RTOS
We have an application that sends timed sensor messages over BLE.
It will occur that the connection is lost, and we provided a buffer mechanism to make sure not all messages are lost.
So when connection is re-established, the buffered data is sent over BLE. This will completely fill the BLE stack buffers.
We now that 5 - 15 messages will be committed to the stack (because if we disable notifications, we loose this amount of messages)
How can we check the number of messages in the stack buffers? We don't need to put in 5 - 15 at a time, 2-5 should be enough. As a consequence, the stack can also handle other notifications (like battery low notifications), which now are often lost due to heap malloc not succeeding.
Currently we see heapmgrSanityCheck
sometimes not returning 0. (not triggered immediately after the stack is full, but is happens fairly quickly but unpredictable during unit testing)