SerialPort.speed

Set the baud rate for this serial port. Speed values are usually restricted to be 1200 * i ^ 2.

Note: that for Posix, the specification only mandates speeds up to 38400, excluding speeds such as 7200, 14400 and 28800. Most Posix systems have chosen to support at least higher speeds though.

  1. SerialPort speed(BaudRate speed)
    class SerialPort
    @property
    speed
  2. BaudRate speed()

Throws

SpeedUnsupportedException if speed is unsupported by current system.

Meta