Detecting timeout between device and server [message #1721525] |
Wed, 27 January 2016 19:08  |
Eclipse User |
|
|
|
Is there a way to detect when the connection between client and server has timed out?
I understand that the library makes no attempt to automatically reconnect, however calling client.reconnect() inside connectionLost() does not seem to be enough to guarentee that connection is restablished in all scenarios.
There are scenarios where either connectionLost is not called or client.reconnect has no effect (its hard to debug because I have to be moving about a lot during the day to detect these issues).
Regaining connection in all scenarios is core functionality for my application, if anyone has any ideas or suggestions, I would appreciate it. Thanks!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 4.18798 seconds