From 3688f566302ea164d19904d0931facda245728dd Mon Sep 17 00:00:00 2001 From: id628 Date: Sat, 6 May 2023 13:48:34 -0400 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c096682..85743cf 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,13 @@ Basic steps: * Create a new module, name it MQTT * Paste in the main.js and mqtt.js files * Update the main.js variables server and hatopic. -* IF you use a username/password on your MQTT, set that up +* IF you use a username/password on your MQTT, set that up: +> in main.js +>> var username = 'flichub'; +>> var password = 'xxxxx'; +> and change this line.... +>> var mqtt = require("./mqtt").create(server,{'username':username,'password':password}); + * Start the "Module" in the IDE and watch the Console output - it'se extremely verbose right now * IF it started right, set the "restart after crash" checkbox just in case