23 lines
905 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");
2017-08-09 00:24:22 +02:00
const mqtt = require("./mqttdispatcher");
2017-08-09 11:37:22 +02:00
const plugintest1 = require("./plugintest1");
log.info("Dispatcher starting");
exports.dispatcher = new mqtt.MqttDispatcher();
exports.dispatcher.register('IoT/test', 'print1', (message) => {
log.info("Callback for IoT/test");
log.info(`message is ${message}`);
return `<<${message}>>`;
});
exports.dispatcher.register('IoT/test', 'print2', (message) => {
log.info("Callback for IoT/test");
log.info(`message is ${message}`);
return `<<${message}>>`;
});
exports.dispatcher.register('IoT/test', 'null1', mqtt.passThrough);
exports.dispatcher.register('IoT/test', 'null2', mqtt.passThrough);
plugintest1.pluginTest1Start(exports.dispatcher);
exports.dispatcher.exec();
log.info("Dispatcher running");
2017-07-22 23:39:14 +02:00
//# sourceMappingURL=main.js.map