.Txbuffsize R/O Property


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



Value Range:

0- buffer capacity

See Also:

Allocating TX and RX buffers


To change the buffer capacity, use the bt.txbuffrq method followed by the sys.buffalloc method. Bt.txbuffrq requests buffer allocation in 256-byte pages whereas this property returns the buffer size in bytes. 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.