Check for actual COM port device connectivity
Posted on 2008-09-29
Does anyone know a way to test to see if a device is actually connected to a given COM port?
The following code will return OK, as the port is open, but I need to know if a device is actually plugged in, not just an open port.
If MSComm1.PortOpen = True Then
MSComm1.Output = "e"
MsgBox "Com port is not open...", vbExclamation, "Error"