Click here to Skip to main content
15,897,334 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am having problem with data receiving for serial port RS232 with C# .
property of my sending divice is Data bits 8 ,BundRate 57600 ,handshake none ,
Read Buffer size 10 , write Buffer size 5,stop bit 1.
I wanna do data recieving with visual studio by using forms and serial port.
please help me .I tried I have got the Error said "Read time must be integer" but my read time is in millisecound .
Posted

1 solution

If you mean the SerialPort.ReadTimeout Property[^] then milliseconds are entered as an integer, not a float or double. It is entered as a number of milliseconds, not as a fraction of a second. I.e. one seconds is set as 1000, not as 1.0, and a tenth of a second is entered as 100 not as 0.1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900