2,485 bytes added
, 15:01, 16 March 2023
=Introduction=
In this article you will find instructions on how to setup OpenRemote Manager as a MQTT Broker and how to setup a RUT router as a MQTT Publisher and send data over to this OpenRemote Broker.
With that, you will be able to configure any other device as a MQTT Subscriber, and listen to any published info by the router or other devices on this same broker.
=Prerequisites=
You will need:
* OpenRemote system
* A router from RUTx, TCRx or TRBx series
=Hardware Description=
Hardware descriptions can be found in different Quick Start Guides (QSG). There you will find an overview of the various components on the front and back of a device, hardware installation instructions, first login information, device specifications, and general safety information. Link: [https://wiki.teltonika-networks.com/view/Quick_Start_Guides Quick Start Guides]
=Set up your Development Environment=
Teltonika Networks devices comes with our created [https://wiki.teltonika-networks.com/view/Firmware_Downloads firmware], therefore no additional development or scripting is required for this unit to support OpenRemote.
=Setting up OpenRemote=
===Quickstart===
Refer to the online OpenRemote documentation at [https://github.com/openremote/openremote#quickstart Quckstart]. Follow the steps in the section <b>Quickstart</b> to create your own environment with full access.
<br><b>NOTE</b>: In examples, port <code>1883</code> was used for MQTT protocol. To use this port you need to add it to your <code>docker-compose</code> file.<br>
[[File:Networking_rutos_configuration_examples_openremote_001.png|border|class=tlt-border]]
===Create a service user===
The service user will give programmatic access to the MQTT client.
# Go to the users page and create a new service user (second panel on the page).
[[File:Networking_rutos_configuration_examples_openremote_002.png|border|class=tlt-border]]
[[File:Networking_rutos_configuration_examples_openremote_003.png|border|class=tlt-border]]
# Name the service user 'mqtt_user' and give the user the read and write role for the sake of convenience. It is advised to configure a more restricted role for your service users.
[[File:Networking_rutos_configuration_examples_openremote_004.png|border|class=tlt-border]]
# Click 'Create', a secret will be generated automatically.
# Open the 'mqtt_user' user to see and copy the secret.
[[File:Networking_rutos_configuration_examples_openremote_005.png|border|class=tlt-border]]
======