开发者

Managing serial ports in C# [duplicate]

开发者 https://www.devze.com 2023-04-02 01:13 出处:网络
This question already has answers here: How to Read and Write from the Serial Port (3 answers) Closed 2 years ago.
This question already has answers here: How to Read and Write from the Serial Port (3 answers) Closed 2 years ago.

Does anyone know the easiest way to control a serial port in c# (e.g. set baud rate, data bits, stop bits, read inbound messages in bytes, push outbound messages in bytes,...etc)? Are there any ready classes that I 开发者_开发问答can utilize for this?


You can do all this with the System.IO.SerialPort class. (so long as you're using >NET 2.0 or above.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号