Skip to content

Commit 2713d5b

Browse files
committed
Describe username and password as connect options
1 parent 1fc7b64 commit 2713d5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ If you are using a **self-signed certificate**, pass the `rejectUnauthorized: fa
195195
Beware that you are exposing yourself to man in the middle attacks, so it is a configuration
196196
that is not recommended for production environments.
197197

198+
If your broker requires username and password, you can add `username` and `password` to the `options` object.
199+
198200
If you are connecting to a broker that supports only MQTT 3.1 (not
199201
3.1.1 compliant), you should pass these additional options:
200202

0 commit comments

Comments
 (0)