access to the port 'com4' is denied c# 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.