9 views (last 30 days)
Hi, I need to write a program in such a way that it performs certain operations when an event happens. In particular, the event concerns the reading of a precise number of bytes from a serial port. I have to write the program using the concept of event-based programming; so if my event does not happen (so there is no precise number of bytes to read on the serial port) my program performs other operations. Is there any example I can start from to do this? I state that I am not familiar with this type of approach.
Thanks in advance