uartLookup method

int uartLookup(
  1. String uartName
)

UART lookup - mraa_uart_lookup

Get the UART index by name, the board must be initialised. Returns the MRAA index for the UART name or Mraa.generalError on error.

Implementation

int uartLookup(String uartName) =>
    _impl.mraa_uart_lookup(uartName.toNativeUtf8().cast<Char>());