Write() public method

Queues bytes for transmission.
public Write ( byte toSend ) : void
toSend byte Array of bytes to be sent
return void
Exemplo n.º 1
0
 static void Main(string[] args)
 {
     var serialPort = new SerialPort("com1", 14400);
     serialPort.DataReceived += x => Console.Write((char)x);
     serialPort.Open();
     while (true)
     {
         serialPort.Write(Console.ReadKey().KeyChar);
     }
 }
Exemplo n.º 2
0
 public void Write(byte[] buffer)
 {
     ComPort.Write(buffer);
 }