Ejemplo n.º 1
0
        public async static Task <byte[]> ReadAsync(this System.IO.Ports.SerialPort serialPort, int count)
        {
            var datos = new byte[count];
            await serialPort.ReadAsync(datos, 0, count);

            return(datos);
        }