# MQTT

MQTT ("Message Queuing Telemetry Transport") is a data exchange protocol for IoT messaging.

See this documentation for getting started: <https://mqtt.org/getting-started/>

This protocol works with a publish/subscribe mechanism and needs a broker (server) and clients that publish and receive messages.

A broker can be installed on a server or in localhost (e.g. see [Mosquitto](https://mosquitto.org/)) or an online broker can be used (e.g. wss\://broker.emqx.io)

Several tools and libraries are available to instantiate MQTT clients, e.g. [EMQX](https://www.emqx.com/en/mqtt/public-mqtt5-broker) and [MQTTX](https://mqttx.app/web-client). The following section shows how to use MQTTX.
