Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Sent time(Time of original message)
Sent time [message #1180875] Mon, 11 November 2013 08:01 Go to next message
Francois van der Merwe is currently offline Francois van der Merwe
Messages: 1
Registered: November 2013
Junior Member
Is there a way to see when the message was originally published? When my client logs in and receive some messages from durable subscriptions it would be nice to know when the message was actually posted, especially if it is "sensor" connected messages.

Thank you
Re: Sent time [message #1181322 is a reply to message #1180875] Mon, 11 November 2013 14:30 Go to previous message
Nicholas O'Leary is currently offline Nicholas O'Leary
Messages: 4
Registered: November 2012
Junior Member
Hi Francois,

no, MQTT does not provide this facility at the protocol level.

A typical way to solve this would be to include a timestamp in the payload - not ideal, as you then have to have some structure in the payload rather than just raw data.

Nick
Previous Topic:Lua Client - attempt to index field 'client' (a nil value)
Next Topic:Single threaded MQTT 'C' client
Goto Forum:
  


Current Time: Tue Sep 30 22:14:16 GMT 2014

Powered by FUDForum. Page generated in 0.01584 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software