mirror of
https://gitlab.silvrtree.co.uk/martind2000/mqttArchiver.git
synced 2025-01-11 03:45:09 +00:00
fixing db write
This commit is contained in:
parent
224e847413
commit
64b2411333
1
app.js
1
app.js
@ -57,7 +57,6 @@ busEmitter.on('MAJORERROR', () => {
|
|||||||
|
|
||||||
|
|
||||||
var heartBeat = function() {
|
var heartBeat = function() {
|
||||||
console.log(this);
|
|
||||||
this.pingTimer = 0;
|
this.pingTimer = 0;
|
||||||
this.count = 0;
|
this.count = 0;
|
||||||
this.rate = 90000;
|
this.rate = 90000;
|
||||||
|
@ -178,7 +178,7 @@ var mqttClient = function() {
|
|||||||
json.device = topicArray[4];
|
json.device = topicArray[4];
|
||||||
json.event = topicArray[6];
|
json.event = topicArray[6];
|
||||||
|
|
||||||
//busEmitter.emit('saveData', json);
|
busEmitter.emit('saveData', json);
|
||||||
//console.log(json.type);
|
//console.log(json.type);
|
||||||
if (json.type !== 'Ti-CC3200') {
|
if (json.type !== 'Ti-CC3200') {
|
||||||
console.log(json);
|
console.log(json);
|
||||||
|
Loading…
Reference in New Issue
Block a user