Serial

Last Updated On 2021-07-16

Version 1MinSDK 12Tutorial Video

Serial component which can be used to connect to devices like Arduino


Properties

You can set the below properties in the UI part of the builder.

  • BaudRate - it's a integer value which is set to 9600 by default.
  • BufferSize - it's a integer value which is set to 256 by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

BaudRate

Returns the current baud rate


BufferSize

Returns the buffer size in bytes


IsInitialized

Returns true when the Serial has been initialized.


IsOpen

Returns true when the Serial connection is open.



Methods

You can set the below method blocks in the blocks section of the builder.

CloseSerial

Closes serial connection. Returns true when closed.

InitializeSerial

Initializes serial connection.

OpenSerial

Opens serial connection. Returns true when opened.

PrintSerial

Writes given data to serial, and appends a new line at the end.

ReadSerial

Reads data from serial.

WriteSerial

Writes given data to serial.