Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Unusable token with aynchronous library (MQTTAsync) ?

Ah, I'd forgotten about this in amongst getting Paho 1.0 out.  Now we have 1.0 released, I can take a look, under https://bugs.eclipse.org/bugs/show_bug.cgi?id=433871.  It will take some refactoring of the internals, which will affect both C clients, which is why I haven't jumped into it before.

Ian

On 18/07/14 16:01, Frank Pagliughi wrote:
This has plagued me for a while and I have continuously requested an update of the library where the token is returned to the caller immediately when the message is published - not in a later callback. The publish function could fill in the token value as a mwans to return it to the caller without changing the API.

Frank

On 07/18/2014 03:58 AM, Nicolas GAUTHIER wrote:
The token is returned in MQTTAsync_successData and MQTTAsync_failureData structures, but there is no way to get it before sending. The best shot that i see is to use the void* context parameter.
Another point : in our application, with asynchronous mechanisms, we call publish() function before being connected (always in QoS 1). Theses messages are not sent nor kept but just dropped.
Should I manage this point manually ? Store messages then send them after connectSuccess only ?


De: "Andy Piper" <andypiperuk@xxxxxxxxx>
À: "General development discussions for paho project" <paho-dev@xxxxxxxxxxx>
Envoyé: Jeudi 17 Juillet 2014 18:11:13
Objet: Re: [paho-dev] Unusable token with aynchronous library (MQTTAsync) ?

Probably document as deprecated and remove in v.Next


On Thu, Jul 17, 2014 at 5:00 PM, Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Nicolaus,

no, the token in MQTTAsync_responseOptions is not used.  That seems to be a leftover from an previous design, which needs to be removed or documented as unused.  The token which you can use to refer to a request is returned in the MQTTAsync_successData structure as a parameter to the MQTTAsync_onSuccess callback.

Ian


On 07/17/2014 04:07 PM, Nicolas GAUTHIER wrote:
Hello

I'm using the asynchronous library of Paho and have an issue to check sended message with tokens. As I see, token specified in MQTTAsync_responseOptions struct is not used by the library.
Do I miss something ?

Thank you.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Committer on Paho, Mosquitto


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



--
Andy Piper | Kingston upon Thames, London (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


Back to the top