Jump to content

Basic Question about Events in RS232 for c#

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
avibiter

avibiter

    Newbie

  • Members
  • Pip
  • 5 posts
i talking about communication using system.io.port
i saw that there's an event for data recieved
is there an event for data sending finished (data send buffer empty)?
if no event exist can someone explain me why?

Thank you
Avi

#2
ArekBulski

ArekBulski

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,376 posts
Do you mean System.IO.Ports.SerialPort class? If yes, then I can only suggest the following: :cool:

1. You could check BytesToWrite member periodically is the send buffer empty already. But this is not an event, as you asked for. I haven't found such event.

As to why there is no such event... No one at Microsoft troubled to add such an event, obviously. Not so much of an answer tough.