updated gulp

This commit is contained in:
Martin Donnelly 2016-05-18 09:45:21 +01:00
parent 8a9d9a2c73
commit f0c04db85d

View File

@ -237,7 +237,7 @@ module.exports = {
var sensorData = {};
wsClient.onMessageArrived = function(msg) {
//Logger.info("Message from :" + msg.destinationName);
logger.info("Message from :" + msg.destinationName);
clientStatus.deviceConnected = true;
sensorData = JSON.parse(msg.payloadString);
// Logger.debug(sensorData);
@ -251,11 +251,11 @@ module.exports = {
};
wsClient.onConnectionLost = function(e) {
logger.error('+ onConnectionLost');
logger.error('+ wsClient.onConnectionLost');
logger.error(e);
//self.emitter.emit('sendSocket',{id: 'deviceLost',data: e});
//var wsReconnectTimer = setTimeout(function() {logger.debug('TRYING TO RECONNECT TO MQTT');self.emitter.emit('connectWS');}.bind(this),30000);
logger.error('- onConnectionLost');
logger.error('- wsClient.onConnectionLost');
};
@ -275,6 +275,7 @@ module.exports = {
connectOptions.onFailure = function(e) {
self.emitter.emit('sendSocket',{id: 'deviceNotConnecting'});
logger.error('wsClient onFailure', e);
logger.error('MQTT connection failed at ' + Date.now() + '\nerror: ' + e.errorCode + ' : ' + e.errorMessage);
//var wsReconnectTimer = setTimeout(function() {logger.debug('TRYING TO RECONNECT TO MQTT');self.emitter.emit('connectWS');}.bind(this),30000);
};