pxt-calliope/docs/reference/serial/set-tx-buffer-size.md

370 B

set Tx Buffer Size

Sets the length of the serial transmission buffer in bytes.

serial.setTxBufferSize(10)

Parameters

  • size: desired length of the transmission buffer

Example

Allocates 64 bytes for the transmission buffer.

serial.setTxBufferSize(64)

See also

set rx buffer size