some changes to global mode

This commit is contained in:
Martin Donnelly 2017-02-28 23:49:17 +00:00
parent 47269c3633
commit 353cc61416

View File

@ -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);