Can MQTT Deliver One Command More Than Once?
With MQTT QoS 1, a sender can retransmit a message if an acknowledgement is lost.
The key idea
With MQTT QoS 1, a sender can retransmit a message if an acknowledgement is lost. A physical action triggered by the command may therefore occur more than once.
What to remember
- Use stable application command IDs
- Design repeated commands to have a defined effect
Check your understanding
How can a controller avoid actuating twice after a retry?
Show the explanation
Recognize a previously processed command ID and return the stored outcome.