开发者

Serial Port Port.Write() Command

开发者 https://www.devze.com 2023-04-07 01:59 出处:网络
I\'m curious as to why when I use the SerialPort.Write() command, the command I\'m trying to send doesn\'t actually ever get sent. (Maybe it just sits in the buffer, or is just saved somewhere, I don\

I'm curious as to why when I use the SerialPort.Write() command, the command I'm trying to send doesn't actually ever get sent. (Maybe it just sits in the buffer, or is just saved somewhere, I don't know). I have to use the SerialPort.BaseStream.BeginWrite() command to actually physically send that command. Why is that?

Thanks,

开发者_StackOverflow中文版Carter


The BeginWrite method on a stream calls the Write method synchronously, which means that Write method might block on some streams. To determine whether the current instance supports writing, use the CanWrite property.

a link!

0

精彩评论

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