MQTT

Supported Network Protocols

The network protocol used by the MQTT publisher is selected through the prefix of the Broker URI. The following network protocols can be selected (assuming they are supported by the broker):

  • mqtt://<host>:<port>
    • TCP, insecure, fine for must use cases
  • tcp://<host>:<port>
    • same as above, alias for mqtt://
  • mqtts://<host>:<port>
    • TCP using SSL/TLS
  • ssl://<host>:<port>
    • same as above, alias for mqtts://
  • ws://<host>:<port>
    • Insecure websockets
  • wss://<host>:<port>
    • Secure websockets
  • unix://<path>
    • A UNIX-domain socket
    • *nix only
    • Broker must be located on the same physical hardware

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9