auto serCond = new SerialPort("ttyS0"); serCond.speed = 38400; serCond.write("Hello world!"); serCond.close();
const(char)[] port | 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. |