Hi to all, I’m new on mqtt field and I’m trying to set the mqtt broker on teltonika RUTM54.
I have a couple of question to start:
-I want only one mqtt broker… I have to create some bridges anyway or it is not necessary?
-I want to create a connection between broker and publisher with user and password… I saw a button with load file… But how the file needs to be formatted (is a txt or bin file? if txt how to write user and password)?
Thanks in advance
Hello,
Apologies for the delayed response.
To clarify your questions:
- If you want your RUTM54 to act as the MQTT broker, there is no need to create any bridge; bridges are only used to link multiple brokers together (e.g., if you had another broker elsewhere that you wanted to sync with).
- To create a username and password authentication setup:
- The file used for credentials is a simple
.txt
file with this format:
username:password
For example:
- However, this file needs to be encrypted before it can be used by the broker.
- You can encrypt it using the
mosquitto_passwd
utility. On Windows, this is easiest via WSL or following this guide here (assuming mosquito is installed on Windows). The command for password encryption is:
mosquitto_passwd -U passwordfile
Encrypted username and password file
This will encrypt the passwords in the file and make it suitable for upload. More details for this command’s usage can be found on the official mosquito.org page here: mosquitto_passwd man page | Eclipse Mosquitto
If you’re only testing locally and security isn’t a concern, you can skip username/password entirely by selecting Allow anonymous in the broker’s miscellaneous settings.
More useful information and familiarization with MQTT usage is available in the wiki article here: https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT
I hope this helps and clarifies your inquiries.
Best regards,
This topic was automatically closed after 60 days. New replies are no longer allowed.