fixed wrong reference in scene manager

This commit is contained in:
Marcus Westin 2020-03-13 12:02:56 +01:00
parent 35bbfbe746
commit 7260de46ca

View file

@ -35,7 +35,7 @@ async function main() {
client.init(); client.init();
// init the BLE interface // init the BLE interface
const sceneManager = new SceneManager(site, devices); const sceneManager = new SceneManager(plejdApi.site, devices);
const plejd = new PlejdService(cryptoKey, devices, sceneManager, config.connectionTimeout, config.writeQueueWaitTime, true); const plejd = new PlejdService(cryptoKey, devices, sceneManager, config.connectionTimeout, config.writeQueueWaitTime, true);
plejd.on('connectFailed', () => { plejd.on('connectFailed', () => {
console.log('plejd-ble: were unable to connect, will retry connection in 10 seconds.'); console.log('plejd-ble: were unable to connect, will retry connection in 10 seconds.');