gavinying / modpoll

A New Command-line Tool for Modbus and MQTT
https://gavinying.github.io/modpoll
MIT License
84 stars 17 forks source link

Publish timestamp along with data #53

Closed dakhnod closed 1 month ago

dakhnod commented 2 months ago

Is there an option to publish the timestamp of acquisition along with the data?

If QOS>0 is selected and there is an MQTT outage, the messages should be buffered, I think. In that scenario, it would make sense to have a timestamp in every message...

gavinying commented 2 months ago

Hi @dakhnod, have you tried "--timestamp" argument? type modpoll -h or check here for details.

dakhnod commented 1 month ago

Thanks!