Post load MQTT settings after login

This commit is contained in:
Robert Strouse 2023-07-01 09:37:13 -07:00
parent d228a21c83
commit 1ab1dbd9cb
2 changed files with 4 additions and 4 deletions

View file

@ -513,10 +513,10 @@ async function initSockets() {
await general.loadGeneral();
await wifi.loadNetwork();
await somfy.loadSomfy();
await mqtt.loadMQTT();
//await general.init();
//await somfy.init();
await mqtt.init();
//await mqtt.init();
//await wifi.init();
})();
}
@ -1302,7 +1302,7 @@ class General {
{ city: 'Europe/Lisbon', code: 'WET0WEST,M3.5.0/1,M10.5.0' },
{ city: 'Europe/London', code: 'GMT0BST,M3.5.0/1,M10.5.0' },
{ city: 'Europe/Moscow', code: 'MSK-3' },
{ city: 'Europe/Paris', code: 'CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00'),
{ city: 'Europe/Paris', code: 'CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00' },
{ city: 'Indian/Cocos', code: '<+0630>-6:30' },
{ city: 'Pacific/Auckland', code: 'NZST-12NZDT,M9.5.0,M4.1.0/3' },
{ city: 'Pacific/Chatham', code: '<+1245>-12:45<+1345>,M9.5.0/2:45,M4.1.0/3:45' },
@ -3190,7 +3190,7 @@ class MQTT {
ui.toElement(document.getElementById('divMQTT'), { mqtt: settings });
}
});
};
}
connectMQTT() {
let obj = ui.fromElement(document.getElementById('divMQTT'));
console.log(obj);