I am having an issue where I am using Node-REDs input MQTT nodes to publish/subscribe to topics via the AWS IoT core broker.
I am using QOS 0.
The issue is when subscribed to the topics on Node-RED I will get duplicate messages. However, at the same time when I subscribe to the AWS web console, only one message will appear.
Any ideas? I am not sure if this is a Node-RED issue or AWS. Was looking at Nod-red as in AWS it's not showing up duplicate. Posting here to see if anyone has the same issue.
Can you attach a debug node showing what is being published, and another showing the duplicate message reception and post screenshots of each (for the same message obviously) please.
I would understand this if I was using QoS 1. I believe QoS 1 will deliver "at least once" so having duplicates would seem like something that could happen. However, QoS 0 is just "Fire and forget" I am correct in this way of thinking.
If it doesn't support QoS 2 then obviously you can't try that (which was an attempt to understand the problem better).
Whatever the cause, if it is causing a problem and you want a workaround for the short term then you could add an RBE node after the MQTT In node to suppress messages with the same payload, or if you don't want to suppress them if they are not close together then you could use a Trigger node configured like this, which in the even to two or more messages close together will discard the first ones and just send on the last.