Closed darkcurrent closed 2 years ago
Hi,
Thanks for using the library and your nice words.
Normally, the username / password are required only by certain MQTT Broker. clientID is generated automatically by the library using MAC address, ESP chipID, etc.
If those are required, follow these steps
setCredentials(username, password)
as defined insetClientId(clientId)
as defined in If not using setClientId()
, the clientID will be auto-created
As this is not a bug of the library, I'm closing the issue now and suggest next time, post on Discussions or Arduino Forum to get help.
Good Luck,
Hi,
Thanks for using the library and your nice words.
Normally, the username / password are required only by certain MQTT Broker. clientID is generated automatically by the library using MAC address, ESP chipID, etc.
If those are required, follow these steps
- For username / password, you can use function
setCredentials(username, password)
as defined in
- For clientID, use function
setClientId(clientId)
as defined inIf not using
setClientId()
, the clientID will be auto-createdAs this is not a bug of the library, I'm closing the issue now and suggest next time, post on Discussions or Arduino Forum to get help.
Good Luck,
Thank you.
Hello, this is a very cool library. But I am little bit confused about how to set clientid, username and password for mqtt connection. Could you help me please?