ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

hardwareUartWriteString

UART.hardwareUartWriteString(uartIndex, str, [ezbIndex])

Parameters

uartIndex Index of UART to write to.
str String to write to the UART.
ezbIndex (optional) Board index of the EZB to use.

Returns

Nothing

Description

Writes string given by str to the specified UART. The UART must be initialized first.

Example

var str = "some random amount of data";

// write the amount of data we're gonna send
UART.hardwareUartWrite(0, str.length);

// now send the data
UART.hardwareUartWriteString(0, str);