modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 16:13:26 +00:00
parent 1d48b8374e
commit e1a8ef2184

View File

@ -133,6 +133,8 @@ 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);
/* if (data.hasOwnProperty(temp)) {
logger.log('We have temp! ' + data.temp);
}*/