Changes

1,877 bytes added ,  14:27, 30 November 2017
Created page with "==Summary== '''MQTT (MQ Telemetry Transport or Message Queue Telemetry Transport)''' is an ISO standard (ISO/IEC PRF 20922) publish-subscribe-based messaging protocol. It wor..."
==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
{| class="wikitable"
|+
! style="width: 250px; background: black; color: white;" | Field name
! style="width: 250px; background: black; color: white;" | Value
! style="width: 1200px; background: black; color: white;" | Description
|-
! style="text-align: left; vertical-align: top;" | Enable
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
| style="text-align: left; vertical-align: top;" | Toggles MQTT Broker ON or OFF
|-
! style="text-align: left; vertical-align: top;" | Local Port
| style="text-align: left; vertical-align: top;" | integer [0..65535]; Default: " "
| style="text-align: left; vertical-align: top;" | Specifies the local port that the MQTT broker will listen to
|-
! style="text-align: left; vertical-align: top;" | Enable Remote Access
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
| style="text-align: left; vertical-align: top;" | If enabled, MQTT Broker will be reachable by remote user (from WAN)
|-
|}

Navigation menu