Represents a communicator using the SerialPort library for communication with hardware devices.

Implements

Constructors

Accessors

Methods

  • Sets a callback function to handle incoming data from the serial port.

    Parameters

    • func: ((data) => void)

      The function to be called with received data.

        • (data): void
        • Parameters

          • data: string

          Returns void

    Returns Promise<void>

Generated using TypeDoc