Retained Messages (EN)

Concept

Messages stored by the broker that are sent to new subscribers

Architecture

flowchart LR   Publisher(Publisher) -->|Message with -r| Broker[MQTT Broker]   Broker -->|Stores as Retained Message| Topic[Topic]   NewSubscriber(New Subscriber) -->|Subscribes to Topic| Topic   Topic -->|Sends Retained Message| NewSubscriber 

In Context

  • Typically used together with Quality of Service (QoS) Levels
  • Related to: Last Will and Testament (LWT), MQTT Topics
  • Example use case: Providing the current temperature value to newly connected clients
Quelle: AI Generated