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 to an mqtt broker using hostname instead using the ip address? #57

Open
riskico21 opened this issue Apr 12, 2016 · 3 comments

Comments

@riskico21
Copy link

No description provided.

@g-goessel
Copy link

It's simple, do

WiFiClient espClient;
PubSubClient client(espClient, "server adress");

@g-goessel
Copy link

Did it work for you? If so you can close the issue

@riskico21
Copy link
Author

i'm so sorry for the late reply, i already tested your solution and i think it might be work. But in my case i want to use "ngrok" to tunnel my mqtt broker connection so that i can publish a message from anywhere over the internet. the string address called "tcp.ngrok.io" and i also already changed the port number on the PubSubClient.h but nothing happened

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