Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MQTT is an open OASIS and ISO standard lightweight, publish-subscribe network protocol that transports messages between devices. You can find more information about the MQTT protocol following the linkA typical MQTT communication topology consists of:

  • an MQTT publisher → a device that sends information to the server;
  • an MQTT broker → a server where the data is stored;
  • an MQTT subscriber → a device that reads/monitors the data published on the server.

Currently, RouterOS can act as an MQTT publisher and you can also run an MQTT broker via the container feature.

Configuration

Sub-menu: /iot mqtt

...

You can find more application examples for MQTT publish scenarios and our KNOT product following the links below:

a) MQTT/HTTPS example with AWS cloud platform

b) MQTT example with Azure cloud platform

c) MQTT and ThingsBoard configuration

The settings shown in the examples above apply to any RouterOS device. The only thing that needs to be changed/altered is the script used because the script (in those examples) collects Bluetooth information. Currentlyto keep in mind is that AWS's and Azure's examples showcase scripts that structure MQTT messages out of the Bluetooth payloads and, currently, only the KNOT supports Bluetooth. For RouterOS devices other than KNOT - , you will need to change the script per your requirements (for example, you can use the a basic script shown in from this articleguide).

Broker

To add a new broker, run the following command:

...