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

Can the peripheral clear it's own BLE transmit buffer 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?

Parents
  • 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

Reply
  • 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

Children
Related