The MQTT protocol defines two types of network entities:
- A message broker and a number of clients. An MQTT broker is a server that receives all messages from the clients and then routes the messages to the appropriate destination clients.
- An MQTT client is any device (from a micro controller up to a fully-fledged server) that runs an MQTT library and connects to an MQTT broker over a network.
The default unencrypted MQTT port is 1883. The encrypted port is 8883