From 353cc614160213757100889a7646827006965706 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 28 Feb 2017 23:49:17 +0000 Subject: [PATCH] some changes to global mode --- lib/mqtt/mqttClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mqtt/mqttClient.js b/lib/mqtt/mqttClient.js index 15cc081..3feeb89 100644 --- a/lib/mqtt/mqttClient.js +++ b/lib/mqtt/mqttClient.js @@ -46,8 +46,8 @@ const mqttClient = function(events) { const url = ['https://maker.ifttt.com/trigger/', mode, '/with/key/cWvECkeiyAPwmiOPBkXL2D'].join(''); if (mode !== globalMode) { - logger.info('Go for change state'); - // globalMode = mode; + logger.info('Go for change state', mode); + globalMode = mode; logger.debug('Global Mode now A:', globalMode); /* Request(url, function (error, response, body) { logger.debug(response, body);