sskaje / mqtt

MQTT Client class
https://sskaje.me/category/MQTT/
MIT License
86 stars 33 forks source link

Header Timestamp always 1970-01-01T01:00:00+01:00 #25

Closed rcaboni closed 5 years ago

rcaboni commented 5 years ago

Hi, I tried your beautiful library and work fine, but all messages have the Timestamp not set and the ActiveMQ report Header Timestamp 1970-01-01T01:00:00+01:00. Is there a way to set the Timestamp from library or it's a bug ? Thanks Roberto

sskaje commented 5 years ago

I didn't see a TIMESTAMP field in MQTT 3.1.1 protocol.

Maybe you need to see how ActiveMQ implements this Timestamp header.

sskaje@gmail.com https://sskaje.me/

On Fri, Sep 28, 2018 at 4:29 PM rcaboni notifications@github.com wrote:

Hi, I tried your beautiful library and work fine, but all messages have the Timestamp not set and the ActiveMQ report Header Timestamp 1970-01-01T01:00:00+01:00. Is there a way to set the Timestamp from library or it's a bug ? Thanks Roberto

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sskaje/mqtt/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMwNvkSCRDlKXk_PEVrXYiT2cvOKLxQks5ufd3ZgaJpZM4W-EjA .

rcaboni commented 5 years ago

Correct sskaje, the MQTT protocol haven't Timestamp. Now I think MQTT timestamp is for other protocols its supported. Thanks