License:
BSD style: see license.txtAuthor:
Robin Kreis
1 2 3 4 | auto serCond = new SerialPort("ttyS0"); serCond.speed = 38400; serCond.write("Hello world!"); serCond.close(); |
Params:
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 |
Throws:
IOException if speed is unsupported.Returns:
A string array of all the serial ports that could be found, in alphabetical order. Every string is formatted as a valid argument to the constructor, but the port may not be accessible.