Showing results for System.IO.Ports.SerialPort - PowerShell Team

Aug 31, 2006
Post comments count0
Post likes count0

Writing and Reading info from Serial Ports

PowerShell Team
PowerShell Team

PSMDTAG:FAQ: How do I read/write data from a Serial Port? Writing to a Serial Port PS> [System.IO.Ports.SerialPort]::getportnames()COM3PS> $port= new-Object System.IO.Ports.SerialPort COM3,9600,None,8,onePS> $port.open()PS> $port.WriteLine("Hello world")PS> $port.Close()Reading from a Serial Port PS> $port= new-Object System.IO.Po...

FAQDOTNETSystem.IO.Ports.SerialPort