In addition to the trick suggested by JP we sometimes use mqttwarn with a rule that listens to LWT topics and republishes each message to a new topic, with persistence, and with current timestamp added so that the whole log is maintained -- Stefano Costa R&D, Managing Director M. +39 335 6565749 Skype stefanocosta.bluewind Now I want that when Broker publish LWT message to topic, it should
also publish local time, so that I can see from how long connection is
broken.
Mosquitto cannot do that, at least not without modifying the servercode.I don't know if this would help you, but what we do in OwnTracks is toset up an LWT which contains the timestamp of the initial connection;that way we know, when the broker publishes the LWT, which connectionthis refers to. -JP_______________________________________________mosquitto-dev mailing listmosquitto-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://dev.eclipse.org/mailman/listinfo/mosquitto-dev
|