19 lines
585 B
JavaScript
Raw Normal View History

2017-07-22 23:39:14 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const log = require("./log");
const MqttClient = require("./mqttclient");
class Dispatcher {
constructor() {
this._mqttClient = new MqttClient.MqttClient();
this._mqttClient.register('IoT/test', null);
this._mqttClient.register('IoT/Device/#', null);
}
exec() {
log.info("Dispatcher starting");
this._mqttClient.exec();
2017-07-23 22:55:05 +02:00
log.info("Dispatcher running");
2017-07-22 23:39:14 +02:00
}
}
const dispatcher = new Dispatcher();
dispatcher.exec();
//# sourceMappingURL=main.js.map