I am writing a Bluetooth driver and am trying to implement auto reconnect, I
can sucessfully connect and disconnect. I want to have the application auto
connect if the connection is dropped. I have listeners that raise events for
streamConn = (StreamConnection)Connector.open("btspp://" + address);
but once the connection is open how can I detect if the connection is
dropped? I could add a exception handler on read() but there could be a
valid exception and I can not assume that an exception is a dropped
connection. Is there a way to detect if the StreamConnection is closed?
To unsubscribe, send email to email@example.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
firstname.lastname@example.org and include in the body of the message "help".