Bluetooth Driver
Chris Rotberg <[email protected]> Fri, 16 May 2008 11:47:36 -0700
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <[email protected]> |
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
open
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?
Thanks
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".