ArduinoMqttClient icon indicating copy to clipboard operation
ArduinoMqttClient copied to clipboard

Can't send retained messages

Open iris-pascoal opened this issue 2 years ago • 2 comments

Hi! I'm trying to send a retained message, my code is as follows: mqttClient.beginMessage(topicVRCommand, true); mqttClient.print("WAKE_UP_KITCHEN"); mqttClient.endMessage();

The message is not going as retained even though i have the reained flag as true. Anyone had the same problem?

iris-pascoal avatar Apr 27 '22 15:04 iris-pascoal

I seem to have the same problem 😔

Quantiversal avatar Jan 07 '23 16:01 Quantiversal

Actually mine is working. I quit MQTT Explorer then opened it again and saw the flag. I had a misunderstanding of how retained actually works. See: https://github.com/thomasnordquist/MQTT-Explorer/issues/108

Might help.

Quantiversal avatar Jan 07 '23 17:01 Quantiversal