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

How to provide mqtt username and password ? #2

Open
asking23 opened this issue Jun 25, 2019 · 5 comments
Open

How to provide mqtt username and password ? #2

asking23 opened this issue Jun 25, 2019 · 5 comments

Comments

@asking23
Copy link

I am not able to find mqtt username and password field. Kindly please update.

@Zoldex
Copy link

Zoldex commented Feb 19, 2020

You need to change line
if (client.connect(mqtt_id)) {
in:
if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {

Also, you need to add following row at the end of myconfig.h file:
const char* mqtt_password = "your_mqtt_password_here";

@ocram76
Copy link

ocram76 commented Apr 19, 2020

Hello, good evening. what about user name of mqtt is the same as the password? could you please help me? Thank you very much

@Soloio666
Copy link

You need to change line
if (client.connect(mqtt_id)) {
in:
if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {

Also, you need to add following row at the end of myconfig.h file:
const char* mqtt_password = "your_mqtt_password_here";

Hi, the problem even putting the password remains. The error that is generated is (Socket error on client , disconnecting)
I also tried to add the field user but without success.
can you help me?
thank you

@Soloio666
Copy link

You need to change line
if (client.connect(mqtt_id)) {
in:
if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {
Also, you need to add following row at the end of myconfig.h file:
const char* mqtt_password = "your_mqtt_password_here";

Hi, the problem even putting the password remains. The error that is generated is (Socket error on client , disconnecting)
I also tried to add the field user but without success.
can you help me?
thank you

Resolved.
Thanks to the great Luigi Duchi now it works.
Best regards!

@wuschel1337
Copy link

wuschel1337 commented May 11, 2021

You need to change line
if (client.connect(mqtt_id)) {
in:
if (client.connect(mqtt_host, mqtt_id, mqtt_password)) {
Also, you need to add following row at the end of myconfig.h file:
const char* mqtt_password = "your_mqtt_password_here";

Hi, the problem even putting the password remains. The error that is generated is (Socket error on client , disconnecting)
I also tried to add the field user but without success.
can you help me?
thank you

Resolved.
Thanks to the great Luigi Duchi now it works.
Best regards!

Thaks i have the solution... btw. brainfreez ;)
mqtt_host, mqtt_id, mqtt_password
mqtt_host= ip
mqtt_id= username
mqtt_password = password

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

5 participants