mdot_mqtt/index.js
Martin Donnelly 59165a6914 init
2016-08-10 13:55:30 +01:00

29 lines
511 B
JavaScript

var log4js = require('log4js');
var logger = log4js.getLogger();
var WebSocketServer = require('websocket').server;
var EventEmitter = require('events');
var busEmitter = new EventEmitter();
var mqttClient = require('./lib/mqtt/mqttClient');
//var mqttSocket = require('./lib/mqtt/mqttSocket');
//busEmitter.on('startWSConnection', startWSConnection);
var mqtt = new mqttClient.mqttClient(busEmitter);
/*
mqttConnect.setEmitter(busEmitter);
mqttConnect.doConnection();
mqttConnect.connectWS();
*/