mqtt_server/index.js
2016-11-23 19:19:03 +00:00

33 lines
522 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 mqttConnect = require('./lib/mqtt/mqttConnect');
var mqtt = new mqttClient.mqttClient();
/*
mqttConnect.setEmitter(intBusEmitter);
mqttConnect.doConnection();
mqttConnect.connectWS();
*/
/*
setTimeout(function(){
'use strict';
mqtt.lightsIn();
},15000);
*/