QoS (EN)
StandardQuality of Service for MQTT messages
QoS levels in the MQTT data flow
sequenceDiagram participant P as Publisher participant B as Broker participant S as Subscriber Note over P,B: QoS 0 - At Most Once P->>B: Nachricht senden (keine Bestätigung) B->>S: Nachricht weiterleiten Note over P,B: QoS 1 - At Least Once P->>B: Nachricht senden B->>P: PUBACK (Bestätigung) B->>S: Nachricht weiterleiten S->>B: PUBREC (Empfangsbestätigung) B->>S: PUBREL (Bestätigung) Note over P,B: QoS 2 - Exactly Once P->>B: Nachricht senden (PUB) B->>P: PUBREC (Empfangsbestätigung) P->>B: PUBREL (Bestätigung) B->>P: PUBCOMP (Abschluss) B->>S: Nachricht weiterleiten (PUB) S->>B: PUBREC B->>S: PUBREL S->>B: PUBCOMP