Serial.advanced constructor

Serial.advanced(
  1. String path,
  2. Baudrate baudrate,
  3. DataBits databits,
  4. Parity parity,
  5. StopBits stopbits,
  6. bool xonxoff,
  7. bool rtsct
)

Opens the tty device at the specified path (e.g. "/dev/ttyUSB0"), with the specified baudrate, databits, parity, stopbits, software flow control (xonxoff), and hardware flow control (rtsct) settings.

serial should be a valid pointer to an allocated Serial handle structure. databits can be 5, 6, 7, or 8. parity can be PARITY_NONE, PARITY_ODD, or PARITY_EVEN . StopBits can be 1 or 2.

Implementation

Serial.advanced(this.path, this.baudrate, this.databits, this.parity,
    this.stopbits, this.xonxoff, this.rtsct)
    : _serialHandle = _openSerialAdvanced(
          path, baudrate, databits, parity, stopbits, xonxoff, rtsct);