Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] About synchronous use of MqttAndroidClient

Hi all,

I've benn trying to use MqttAndroidClient in a synchronous way by controlling the IMqttToken that its methods return. But each time I use:

IMqttToken.waitForCompletion(long timeout) 

the timeout expires and a MqttException is thrown. However, most of the times the operations have been done fine. Does anyone have the same problem? Is the MqttAndroidClient supposed to work as the traditional MqttAsyncClient in relation to IMqttToken handling?

Regards.
--
---
Manuel Domínguez Dorado
ingeniero ARROBA ManoloDominguez PUNTO com
http://www.ManoloDominguez.com

Back to the top