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

mqtt quick introduction example #72

Closed
Gauravmeenu opened this issue Apr 2, 2023 · 5 comments
Closed

mqtt quick introduction example #72

Gauravmeenu opened this issue Apr 2, 2023 · 5 comments

Comments

@Gauravmeenu
Copy link

Actually, in this example, the topics mentioned in the addresses section of connection in the source.json and target.json file doesn't work.

@thjaeckle
Copy link
Member

So which topics do work instead of the ones provided in the tutorial?

@Gauravmeenu
Copy link
Author

Gauravmeenu commented Apr 3, 2023

Actually, I'm using pub,sub application console (mosquitto_sub -h localhost -t my.sensors.notifications/#) as a subscriber and ( mosquitto_pub -h localhost -m '{"temperature": 25, "humidity": 60, "thingId": "my.sensors:sensor01"}' -t my.sensors/sensor01) as a publisher but I can't get any updates in subscriber console only the web browser (swagger ui) where I can see the changes but I get nothing in sub app console.

@gunjan-it-engg
Copy link

Actually i also have the same issue

@thjaeckle
Copy link
Member

Actually i also have the same issue

Good, then you can help each other out 👍

@gunjan-it-engg
Copy link

Dear Community,

I wanted to address an issue I recently encountered with MQTT server connections and share a solution that can make a big difference.

The Problem:
In my experience, I found that if both the source and target connections to the MQTT server use the same host IP address, it can lead to the connection getting stuck in a loop. This issue was not mentioned in the official examples I consulted.

The Solution:
To resolve this issue, I recommend using different host IP addresses for the source and target connections. This simple adjustment can prevent the loop problem and ensure smoother MQTT server connections.

I hope this tip proves helpful to others in the community facing similar challenges.

Best regards,

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

3 participants