수신된 데이터를 byte단위로 읽고 처리하는 과정
The method's parameters are port.Read(byte[], int, int), so the first parameter is a byte array (byte[]). Try: byte[] buf = new byte[5]; But I don't recommend reading a fixed # of bytes if possible since it is very easy to get one or two bytes off in the incoming buffer and hence not receive the data when expected or get unexpected results. This is much preferred since it handles any amount of i..
C#
2010. 8. 12. 10:27