Thread to receive the messages from serial port is not working using c#
- by karthik
I am using Serial port to receive the messages. The below function is running in a thread. When i debug i find that the thread is running properly. But "if (sp.IsOpen)" is always false, due to which the code is not executing inside the IF condition at all. It says the Port is closed.
I will be having multiple serial ports in my system and i will…