SerialPort.this

Create a new SerialPort instance. The port will be opened and set to raw mode with 9600-8N1.

class SerialPort
this
(
const(char)[] port
)

Parameters

port const(char)[]

A string identifying the port. On Posix, this must be a device file like /dev/ttyS0. If the input doesn't begin with "/", "/dev/" is automatically prepended, so "ttyS0" is sufficent. On Windows, this must be a device name like COM1.

Meta