On a BLE peripheral, is there a way to clear it's own BLE transmit buffer before receiving BLE_GATTS_EVT_HVN_TX_COMPLETE?
On a BLE peripheral, is there a way to clear it's own BLE transmit buffer before receiving BLE_GATTS_EVT_HVN_TX_COMPLETE?
Hello,
No, that is not possible. It is required by the BLE spec to transmit all packets that are queued, and hence potentially attempted to send at least once.
I don't know what you are trying to make, but maybe counting the number of elements you queue vs the number of BLE_GATTS_EVT_HVN_TX_COMPLETE to decide whether or not you want to queue the next packet.
Best regards,
Edvin
Hello,
No, that is not possible. It is required by the BLE spec to transmit all packets that are queued, and hence potentially attempted to send at least once.
I don't know what you are trying to make, but maybe counting the number of elements you queue vs the number of BLE_GATTS_EVT_HVN_TX_COMPLETE to decide whether or not you want to queue the next packet.
Best regards,
Edvin
In my application the nrf52832 is acting as a central and peripheral. Under some circumstances, when acting as a central and connected to another peripheral, we would like that peripheral to stop all outgoing packets, so they don't have to be handled at the central device. Thank you for your answer.