Is this obvious and I’m missing it?
How can I know if a serial connection has been closed?
I thought I’d get an error, but nope.
You don’t get an exception if you reconnect?
That’s not what I mean.
I am connected to the device and then yank the USB. I get no indication that it is disconnected until I try to send data and it fails.
That sounds like a bug, did you wait for longer than 60 seconds? (To be sure it’s not giving a timeout?)
I would expect it to give an error event at least on removal of the device.
the hardware connected can sit all day and night and be fine.
When I yank the cord I get no events / errors.
I’m not sure if this is a bug or not or if it’s just how a serial connection works.
In my case it will be a problem to add some kind of “ping” method.
Maybe someone from Xojo can jump in and say if this is “as designed” or not.
1 Like
sorry, and I waited adequate time.
1 Like