I've raised a bug to track this item:
We're creating new web pages for each of the clients. I've put one
together for the C++ client:
https://www.eclipse.org/paho/new/clients/cpp/. If you have any
changes you'd like me to make, let me know.
On 04/23/2014 07:22 PM, Frank Pagliughi
Hello Ian, and all,
I'm trying to wrap up the next rev of the C++ library, and have
one nagging issue that I believe I inquired about last time. In
the C library, the MQTTAsync_send() and MQTTAsync_sendMessage()
is issued when this function returns successfully.
I can't find how to get this MQTTAsyncToken value until the
callback which happens after the message is delivered.
The problem is that, like the Java client, the C++ client has a
publish() function which returns a token, and that token is
supposed to know the message ID of the outgoing packet. It is
So, to implement this I need the Message ID (MQTTAsyncToken) as
soon as the message is queued - before returning from the
It seems that the latest version of the ...err... asynchronous
mode of the synchronous library has everything I would need to
publish messages, since the publish functions take a pointer to an
int MQTTClient_publish(MQTTClient handle, char
*topicName, int payloadlen,
That would be perfect! I would switch over to the synchronous
library, but there are not corresponding asynchronous versions of
connect() and disconnect().
void *payload, int qos, int retained,
If those existed, I (we?) wouldn't need the asynchronous library
icraggs@xxxxxxxxxx IBM United Kingdom
Committer on Paho, Mosquitto