ArduinoMqttClient
ArduinoMqttClient copied to clipboard
Can't send retained messages
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?
I seem to have the same problem 😔
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.