Open hmueller01 opened 7 years ago
I got news. extraParameters
is needed, if you like to pass a username and password.
I changed the connect call to mqtt.connect(brokerUrl, extraParameters)
The homa connect call looks like this:
var options = {
username: "xxx",
password: "xxx"
};
homa.mqttHelper.connect(null, null, options);
I update the code. Where do we need to upload homa.js that npm install
downloads this new version?
@binarybucks Can you please upload the updated homa.js. Thanks. Holger
I am new to homA and just installed this and node.js on a RPi running jessie. After npm install and running demo I got an error message:
self.mqttClient = mqtt.createClient(port || params.brokerPort, host || params.brokerHost, extraParameters);
TypeError: mqtt.createClient is not a function
Google helped:Installed versions:
So, I patched homa.js like this:
I do not know what
extraParameters
is for and how it should be used in url object context. Right now it works so far ...Holger