esp-mqtt-arduino icon indicating copy to clipboard operation
esp-mqtt-arduino copied to clipboard

setServer function

Open sebastianomelita opened this issue 7 years ago • 4 comments

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

sebastianomelita avatar Apr 13 '18 18:04 sebastianomelita

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

sebastianomelita avatar Apr 13 '18 18:04 sebastianomelita

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

robcim avatar Apr 29 '19 08:04 robcim

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

i-n-g-o avatar Apr 29 '19 11:04 i-n-g-o

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

Roberto

robcim avatar May 03 '19 10:05 robcim