ARC Pro

Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

hardwareUartRead

UART.hardwareUartRead(uartIndex, bytesToRead, [ezbIndex])

Parameters

uartIndex Index of UART to read from.
bytesToRead Number of bytes to read from the UART.
ezbIndex (optional) Board index of the EZB to use.

Returns

A byte array of length bytesToRead containing data received from the specified UART.

Description

Returns a byte array of length bytesToRead containing data received from the specified UART. The UART must be initialized first.