let mqtt = require('./mqttHandler'); let logger = require('./log'); class Switch { } class RelayBox { constructor(switches) { this.switches = switches; } start() { mqtt.register(this.subscribeTopics, (topic, payload) => { logger.info(`item ${this.itemId}: ${topic}, ${payload}`) this.processMessage(topic, payload); }); } } module.exports = { RelayBox, Switch };