modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 16:20:00 +00:00
parent e1a8ef2184
commit 3a5cef1262

View File

@ -133,8 +133,9 @@ router.post('/', function (req, res, next) {
var data = t.data; var data = t.data;
var s = data.toString(); var s = data.toString();
logger.debug(typeof s); logger.debug(typeof s);
dataJSON = JSON.parse(s); logger.debug(s);
logger.debug(typeof dataJSON); /*dataJSON = JSON.parse(s);
logger.debug(typeof dataJSON);*/
/* if (data.hasOwnProperty(temp)) { /* if (data.hasOwnProperty(temp)) {
logger.log('We have temp! ' + data.temp); logger.log('We have temp! ' + data.temp);
}*/ }*/