.txbuffsize R/O Property

Function:

Returns the current capacity, in bytes, of the BLE's TX buffer.

Type:

Dword

Value Range:

0 — buffer capacity

See Also:

Allocating TX and RX Buffers


Details

To change the buffer capacity, use the bt.txbuffrq method followed by the sys.buffalloc method. The bt.txbuffrq method requests buffer allocation in 256-byte pages, whereas this property returns the buffer size in bytes. The relationship between the two is as follows: bt.txbuffsize = num_pages * 256 - 33 (or = 0 when num_pages = 0), where "num_pages" is the number of buffer pages that was GRANTED through bt.txbuffrq. "- 33" is because a number of bytes is needed for internal buffer variables.

The BLE interface is unable to transmit data when its TX buffer has zero capacity.


.txbuffsize R/O Property

Details