Monitoring via MQTT
Summary
MQTT (MQ Telemetry Transport or Message Queue Telemetry Transport) is an ISO standard (ISO/IEC PRF 20922) publish-subscribe-based messaging protocol. It works on top of the TCP/IP protocol. It is designed for connections with remote locations where a "small code footprint" is required or the network bandwidth is limited. The publish-subscribe messaging pattern requires a message broker. This chapter is a guide on how to configure a basic MQTT setup on RUT routers.
How MQTT works
First lets look over how MQTT works on RUT routers. An MQTT connection takes place between two Clients and a Broker. A RUT router can be Broker, a Client or both. The MQTT Publisher (Client) present in RUT routers subscribes to two topics by default: router/get and get/<SERIAL>/command, where <SERIAL> is the router's serial number. A third party
Field name | Value | Description |
---|---|---|
Enable | yes | no; Default: no | Toggles MQTT Broker ON or OFF |
Local Port | integer [0..65535]; Default: " " | Specifies the local port that the MQTT broker will listen to |
Enable Remote Access | yes | no; Default: no | If enabled, MQTT Broker will be reachable by remote user (from WAN) |