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

broker.hivemq.com #55

Open
maba64 opened this issue May 30, 2024 · 5 comments
Open

broker.hivemq.com #55

maba64 opened this issue May 30, 2024 · 5 comments

Comments

@maba64
Copy link

maba64 commented May 30, 2024

have a problem with "broker.hivemq.com although I have activated it and created an account no data is sent
I do not receive an error message
any Idea?
thanks
br
Markus

@3KUdelta
Copy link
Owner

Hi Markus,
how to you know that there is no message sent?
Look at your settings.

bool MQTT = true;                             // If you use MQTT, set to true, else false

const char* mqtt_server = "broker.hivemq.com";       // MQTT Server (broker) address
const char* mqtt_user = "";                          // MQTT Server (broker) userid
const char* mqtt_pass = "";                          // MQTT Server (broker) password
const char* mqtt_topic = "YOUR_TOPIC";  // e.g. myname/weather/my_location
const char* mqtt_status = "YOUR_STATUS"; // e.g. myname/status

Whatever you have set as for variable mqtt_topic you should be able to read back from hivemq. So if you have "myname/weather/zurich" you can use any free MQTT explorer (examples in Apple environments: iOS: MQTTAnalyzer, Mac: MQTT Explorer) and there you need to connect to mqtt://broker.hivemq.com Port: 1883 and subscribe to myname/# - then you should see the published messages.

Hope this helps.
Marc

@maba64
Copy link
Author

maba64 commented May 30, 2024 via email

@3KUdelta
Copy link
Owner

Hi Markus,

Serveraddress: mqtt://broker.hivemq.com Port: 1883, no username, no password
You can use any topic you like. The idea is to use a topic which is unique, so you can subscribe to it at any time.
So, you could use mabazug/wetter as your topic. If you will have more than one station, you´d better take mabazug/wetter/station1. I hope you understand the logic. You are totally free in structuring your topic(s).

Best Marc

@maba64
Copy link
Author

maba64 commented May 30, 2024

and whats about this adress ?
111

c5b730500cd34edbace6696a96113031.s1.eu.hivemq.cloud

@3KUdelta
Copy link
Owner

3KUdelta commented Jun 1, 2024

You simply don't need it. Just use the open port for everyone. No account, no plan, no password. If you believe your weather data is secret or you need a private account then go for it. But I am not sure if I can help you with this.
Marc

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