thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
2.87k stars 282 forks source link

RETAINED message state red text not shown for new messages #662

Open mars000 opened 2 years ago

mars000 commented 2 years ago

running windows 0.4.0 beta 1 on windows 11 (latest build) when new retained messages received does the app does not show the usual "REATINED x" text in app window. I disconnect and reconnect client and then it does show

yawor commented 1 year ago

This is correct according to MQTT protocol. Clients only get retained bit set in the message if the message has been published as retained before the client connected. Otherwise the client doesn't get this information.

The solution would be for the client to act as an MQTT Bridge, because bridges get all the info from the upstream broker. But AFAIK before MQTTv5, bridges where not formalised and brokers had their own custom implementations for creating bridges (for example a mosquitto broker could only act as a bridge for another mosquitto broker). In MQTTv5 there's a native support for bridges, but MQTT Explorer doesn't support this version of protocol.

ejohb commented 1 year ago

Not the fault of ME of course, but this same issue just cost me about and hour of confusion and debugging. I spotted the (very small) "Retained messages only appear to be retained when client connects after the initial publish." tool tip over the "retain" checkbox, but thought it was referring to other clients.

IMO, this message should be

a) Much more prominent, perhaps even a pop-up with "Don't show this again" option. And b) Clearer, e.g. "Retained messages are only labelled 'retained' in the interface when MQTT Explorer connects after they are initially published."

fabian727 commented 1 month ago

same here. Stumbled upon this "problem" for some hours now, before starting googling.

As every component is working as specified, maybe a small message or so would be nice (for beginners)