Also subscribe to $SYS

This commit is contained in:
Thomas Nordquist
2019-01-18 23:54:08 +01:00
parent 2c4c7bb72e
commit bfcee49e74

View File

@@ -65,6 +65,11 @@ export class MqttSource implements DataSource<MqttOptions> {
throw new Error('mqtt subscription failed')
}
})
client.subscribe('$SYS/#', (err: Error) => {
if (err) {
throw new Error('mqtt subscription failed')
}
})
})
client.on('message', (topic, message, packet) => {