modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 16:08:49 +00:00
parent f8a0eadfda
commit 60c0f8c153

View File

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