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

Adding an authentication (username, password) for the MQTT broker #1

Open
happydrop opened this issue May 30, 2024 · 1 comment
Open

Comments

@happydrop
Copy link

Thank you for your project, it's exactly what I need!
I need authentication with user and password for my MQTT Broker. Could you please add that?

/app/node_modules/mqtt/build/lib/handlers/connack.js:43
const err = new shared_1.ErrorWithReasonCode(Connection refused: ${ack_1.ReasonCodes[rc]}, rc);
^
ErrorWithReasonCode: Connection refused: Not authorized
at handleConnack (/app/node_modules/mqtt/build/lib/handlers/connack.js:43:21)
at handle (/app/node_modules/mqtt/build/lib/handlers/index.js:42:35)
at work (/app/node_modules/mqtt/build/lib/client.js:227:40)
at writable._write (/app/node_modules/mqtt/build/lib/client.js:252:13)
at writeOrBuffer (/app/node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/writable.js:334:12)
at _write (/app/node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/writable.js:283:10)
at Writable.write (/app/node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/writable.js:286:10)
at Socket.ondata (node:internal/streams/readable:809:22)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12) {
5
}
Node.js v18.19.0

@swissmanu
Copy link
Owner

hey. thanks for opening an issue. i dont have the need for broker authentication myself at the moment. however, i am open for pull request contributing to litecom2mqtt.

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

2 participants