Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] LWT

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
  Twitter @stefanobluewind


Il giorno 13 mag 2016, alle ore 17:55, Jan-Piet Mens <jpmens.dns@xxxxxxxxx> ha scritto:

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 server
code.

I don't know if this would help you, but what we do in OwnTracks is to
set up an LWT which contains the timestamp of the initial connection;
that way we know, when the broker publishes the LWT, which connection
this refers to.

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

Back to the top