fixing db write

This commit is contained in:
Martin Donnelly 2016-09-29 11:50:07 +01:00
parent 224e847413
commit 64b2411333
2 changed files with 1 additions and 2 deletions

1
app.js
View File

@ -57,7 +57,6 @@ busEmitter.on('MAJORERROR', () => {
var heartBeat = function() {
console.log(this);
this.pingTimer = 0;
this.count = 0;
this.rate = 90000;

View File

@ -178,7 +178,7 @@ var mqttClient = function() {
json.device = topicArray[4];
json.event = topicArray[6];
//busEmitter.emit('saveData', json);
busEmitter.emit('saveData', json);
//console.log(json.type);
if (json.type !== 'Ti-CC3200') {
console.log(json);