Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect private broker RUT240 in mosquitto mqtt service.? #2766

Open
mintheinwin opened this issue Mar 7, 2023 · 1 comment
Open

Comments

@mintheinwin
Copy link

mintheinwin commented Mar 7, 2023

I have a RUT240 Wifi/4G Broker/Router.

The RUT240 Broker/Router have a MQTT Service.

The broker IP is 192.168.1.1

I want to connect to the private broker on the RUT240 to publish/subscribe to messages using mosquito mqtt service. Is it possible to connect this method? If possible how to configuration file in mosquito mqtt service to connect private broker RUT 240. I had test with this sample code from github code.
I set up a bridge in the mosquitto.conf file as follows:

connection rtu240
address 192.168.1.1
topics # both
I can't connect 192.168.1.1 from the client. Any have an idea? Please help.

@ralight
Copy link
Contributor

ralight commented Apr 1, 2023

If your RUT240 has IP 192.168.1.1 and your Mosquitto broker has IP 192.168.1.2, then you would use this config to create a connection from Mosquitto to your RUT240:

connection rtu240
address 192.168.1.1
topics # both

Your MQTT client would then connect to 192.168.1.2.

If your client cannot connect to 192.168.1.1, then it is unlikely that your broker would be able to either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants