serialport.open

  • Thread starter Thread starter cloud
  • Start date Start date
C

cloud

Does the
Serialport1.open works even if the remote host if switched off (in my
case remote host is a controller )

If the device is ON everything works fine...

when the device is off still

Serialport1.open()
serialprot1.isopen
value is giving true...

I need to code in that way, if the device is off then any timeout
exception should come.

Thank you
 
Open doesn't try to communicate with the remote device. It just
prepares the local port for further communication. You'll get a
timeout when you actually try to communicate with the non available
device (reading or writing to the port)...
 
Back
Top