From 3a5cef12625157ed834c32cde4876d9ff619c76d Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 12 Feb 2016 16:20:00 +0000 Subject: [PATCH] modified to use events, hopefully will fix the crashing particle --- routes/temp.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/temp.js b/routes/temp.js index dca9288..594ba04 100644 --- a/routes/temp.js +++ b/routes/temp.js @@ -133,8 +133,9 @@ router.post('/', function (req, res, next) { var data = t.data; var s = data.toString(); logger.debug(typeof s); - dataJSON = JSON.parse(s); - logger.debug(typeof dataJSON); + logger.debug(s); + /*dataJSON = JSON.parse(s); + logger.debug(typeof dataJSON);*/ /* if (data.hasOwnProperty(temp)) { logger.log('We have temp! ' + data.temp); }*/