开发者

Serial Port Port.Write() Command

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜