pxt-calliope/docs/reference/serial/set-tx-buffer-size.md
Peli de Halleux ea2361792f
Adding serial.set(Rx|Tx)BufferSize (#1931)
* Fix for https://github.com/Microsoft/pxt-microbit/issues/1929

* bump pxt

* updated docs

* fix default values

* moving dialogs to react

* moving to react

* typo

* typo
2019-03-21 08:04:48 -07:00

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