I want to know if there is a way to identify if an open port is disconnected and reopen the port if it is available again.
Currently the method I thought I will use is CSerialPortInfo to check if the port exists and close the port if it doesnt and reopen the port once the port is available
I want to know if there is a way to identify if an open port is disconnected and reopen the port if it is available again.
Currently the method I thought I will use is
CSerialPortInfo
to check if the port exists and close the port if it doesnt and reopen the port once the port is availableMy question is there any better way to do this ?