Access to the port 'COM4' is denied. code example
Example: Access to the port 'COM6' is denied.' c#
You can open a serial port only once. But your code has the Open() call inside the while loop.
You can open a serial port only once. But your code has the Open() call inside the while loop.