Hello,
I am having issues with “retained” flag in mqtt. Even if i set retained=true in the config file messages are not send with retain flag.
My Thing:
Thing mqtt:topic:arduinoBoiler "Arduino boiler" (mqtt:broker:local)
{
Channels:
Type number : targetTemp "Target temperature" [ stateTopic="arduino-boiler/out/target", commandTopic="arduino-boiler/in/target", formatBeforePublish="%.0f", retained=true ]
}
When I send command to the linked item message gets published - however without the retain bit set.
I have also noticed, that when i display the thing config code in paper ui, the retained flag is set to false. However retainMessage flag is set to true. No idea what that is.
I have tried using retained="true"
, retained=1
in the config file, but nothing seems to work.
Any ideas what am I doing wrong please?