5/26/2022 6:50 AM | |
Joined: 10/28/2017 Last visit: 4/22/2024 Posts: 10 Rating:
|
Hi I want to use my IOT2050 device as an MQTT broker. To make sure it is working, I'm using the node red as mqtt client to test subscribe and publish. However, when I try this, it shows as disconnected As per my understanding, both node red and mosquitto broker is installed automatically when I load the image file(provided by Siemens support). When using Putty, it shows bot node red and mosquitto broker is started. Node red is working but not mqtt broker. Is there anything additional I need to do to make the broker work. ?Im also not sure if my setting is correct forthe node(flow attached) Please assit thank you AttachmentMqtt issue.zip (695 Downloads) |
This contribution was helpful to
1 thankful Users |
6/4/2022 10:22 AM | |
Joined: 10/28/2017 Last visit: 4/22/2024 Posts: 10 Rating:
|
Hi, Yes that works. However, when I set up a MQTT client(MQTTlens app) from an external PC, the client is unable to connect to the broker(IOT 2050). Currently it only works if the client is direcly within IOT2050(NedRed). How to get i to work with MQTTlens or any other external client? Attachmentmqttt issue.zip (717 Downloads) |
6/7/2022 11:25 AM | |
Posts: 2 Rating:
|
Hi, in order to use the MQTT client from an external PC, a listener for external IP addresses must be added to the config file: 1. open the config-file: /etc/mosquitto/mosquitto.conf 2. add the following lines to the end of the file:
3. reboot the IOT2050 To prevent unauthorised access, authentication can also be set up: https://mosquitto.org/documentation/authentication-methods/ |
Last edited by: AutoGen_3871225 at: 06/07/2022 11:36:43Last edited by: AutoGen_3871225 at: 06/07/2022 14:29:10 |
|
This contribution was helpful to
4 thankful Users |
6/14/2022 10:42 AM | |
Joined: 6/14/2022 Last visit: 6/21/2022 Posts: 1 Rating:
|
thank you for this information |
6/18/2022 6:40 AM | |
Joined: 10/28/2017 Last visit: 4/22/2024 Posts: 10 Rating:
|
Yes. This Works. Thank you very much |
Follow us on