some forwarders

This commit is contained in:
Wolfgang Hottgenroth
2018-01-10 21:46:15 +01:00
parent 1327878985
commit f430ab5ff0
5 changed files with 75 additions and 3 deletions

2
dist/Forwarder.js vendored
View File

@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const AItem_1 = require("./AItem");
const MqttDispatcher_1 = require("./MqttDispatcher");
class Forwarder extends AItem_1.AItem {
constructor(floor, room, item, label, topicLastPart, targetTopics) {
constructor(floor, room, item, topicLastPart, label, targetTopics) {
super(floor, room, item, label);
this.inTopic = `${this.topicFirstPart}/${topicLastPart}`;
this.subscribeTopics = [this.inTopic];