I'm writing a byte to my device.
Then I'm read the answer.
How can I set the timeout for the read answer ? I just want to wait 5
seconds for read; If do not read in 5 seconds break;
Also, WriteByte will write 1 byte or will write my byte Tipo complete?
Here my code:
byte mybuffer = new byte;
currentStream.Read(mybuffer, 0, mybuffer.Length);