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

setServer function #17

Open
sebastianomelita opened this issue Apr 13, 2018 · 4 comments
Open

setServer function #17

sebastianomelita opened this issue Apr 13, 2018 · 4 comments

Comments

@sebastianomelita
Copy link

Why doesn't exists a setServer function which allow to change the server name dinamically?

@sebastianomelita
Copy link
Author

I have resolved with dynamic allocation, i hope is the same thing.

@robcim
Copy link

robcim commented Apr 29, 2019

Hi all.
I'm Roberto. Is it possible to use this library on my esp8266 and esp32???
How can I dinamically set server parameters?
Can anyone help me please?

Thank you

@i-n-g-o
Copy link
Owner

i-n-g-o commented Apr 29, 2019

hi.
i myself used this library only on an esp8266.
for esp32 i can not say, but it may compile and run.

if you need to dynamically connect to a server, you would need to create a MQTT object:
MQTT* my_client = new MQTT(client_id, host, port);

hth

@robcim
Copy link

robcim commented May 3, 2019

Thank
I try on esp8266 and it's ok. as soon as possible text on esp32 and I tell you the results.

Roberto

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