I'm working on getting the LWT (Last will testament) feature to work how i want it to in my system. So right now i have added messages to the broker settings:
connected --> send "online" on topic: topic/devicestatus
disconnect --> send "offline" on topic: topic/devicestatus
unexpected disconnect --> send "failed" on topic: topic/devicestatus
I then for a start created a mqtt in node connected to a debug node. The debug node instantly read "online", which is great because there are a client connected.
-- But i would like to know the ID of the client that provoked a LWT. Is this possible, or do i need an individual broker for each client to see that?