pxt-calliope/docs/reference/serial/set-rx-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

361 B

set Rx Buffer Size

Sets the length of the serial reception buffer in bytes.

serial.setRxBufferSize(10)

Parameters

  • size: desired length of the reception buffer

Example

Allocates 64 bytes for the reception buffer.

serial.setRxBufferSize(64)

See also

set tx buffer size