3
RYWB116 MQTT Client Application User Guide
Copyright © 2019
, REYAX TECHNOLOGY CO., LTD.
MQTT BROKER
The publish-subscribe messaging pattern requires a message broker.
The broker is primarily responsible for receiving all messages, filtering them,
decide who is interested in it and then sending the message to all subscribed clients.
It also holds the session of all persisted clients including subscriptions and missed messages.
Another responsibility of the broker is the authentication and authorization of clients.
A simple demonstration of subscribing and publishing of temperature is shown below
Figure 1: Demonstration of MQTT protocol