MQTT Client has lost connection [message #1709644] |
Tue, 29 September 2015 20:21  |
Eclipse User |
|
|
|
I have MQTT running in an Android service in foreground and background. It is important that the service is available as long as there is network connectivity.
I have left the device in strong signal overnight, it stays connected for 10+ hours just fine and when I disabled and enable wifi, it re-acquires connection as expected.
However, as I move about over the course of the day I inevitably get the message "MQTT Client has lost connection" and subsequnetly I will be unabled to publish or receive anything until relaunching the application.
My theory is that as the Mobile network type changes between NETWORK_TYPE_LTE/NETWORK_TYPE_LTE etc, the ip or connection is for some reason no longer recognised either at server or client end and the client makes no effort to reconnect?
Is the library supposed to handle this? Does anyone know what is going on here or how to fix?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03725 seconds