MQTT Esp security credentials


#1
I Zerynth team,
I've a nodemcu v2 board, and I would like create a MQTT connection with a broker. The Broker credentials are clientid, username and password.
I've read mqtt library doc, and there is no methods that allow me to set password and username for connection. Isn't it true?How can i do?
Thanks

#2

Hello Cosimo,
unfortunately I forgot to document the

my_client.set_username_pw(username, password)
```

method  :o
We will fix as soon as possible,
anyway you can call this method before
my_client.connect(...)
```
 Let me know if everything works :smile: