|
Put operations on the serial port such as open, close, send, and receive data in a class.Each time a class is instantiated, it is equivalent to generating a serial port, so you can have multiple serial ports to send and receive at the same time.
C # is object-oriented. Use object-oriented thinking to consider problems. A form is also a class. You can instantiate multiple forms. The operations between multiple forms do not affect each other. Right, then you can instantiate Multiple serial ports will not interfere with each other. |
|