|Re: [paho-dev] MQTTClient or MQTTAsync ?|
From the MQTTClient API documentation (http://www.eclipse.org/paho/files/mqttdoc/Cclient/index.html):|
"These pages describe the original more synchronous API which might be considered easier to use. Some of the calls will block. For the new totally asynchronous API where no calls block, which is especially suitable for use in windowed environments, see the MQTT C Client Asynchronous API Documentation."
So the difference is that no calls block in the MQTTAsync API - all information about whether an API call worked is returned in callbacks. This makes it a little harder to program, but essential for some environments such as iOS.
A longer description of the differences is here: http://modelbasedtesting.co.uk/?p=4
On 04/08/2014 07:11 AM, rajath ramesh wrote:
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Committer on Paho, Mosquitto
Back to the top