Testing auth connection mqtt

This commit is contained in:
Skylar Grant 2024-08-15 10:00:57 -04:00
parent 89ccd032a9
commit 1975be4375
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,10 @@ export class Communicator {
init(state, config) {
// Connect to the MQTT Broker
this.client = mqtt.connect(config.mqtt.address);
this.client = mqtt.connect(config.mqtt.address, {
username: 'hestia',
password: 'hestia'
});
const { client } = this;
client.on('connect', () => {

View File

@ -13,7 +13,6 @@ window.onload = async function() {
})
.then(data => {
config = data;
console.log(config);
psState.init(config);
comms.init(psState, config);
refreshState(window.document, psState);