frame

MQTT Esp security credentials

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
Tagged:

Comments

  • LorenzoRLorenzoR Member, Moderator
    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:
    Lorenzo Rizzello
    Zerynth Support Team

Sign In or Register to comment.

ZERYNTH Community

@ 2016 Zerynth.com, all rights reserved.