Nok status after 6 hours of no communication
This commit is contained in:
parent
f7350c117d
commit
880edfc604
4 changed files with 381 additions and 506 deletions
|
|
@ -92,15 +92,14 @@ class DataToTbHandler
|
|||
}
|
||||
|
||||
//console.log(this.sender + " DATA SEND TO TB ", tbname, this.messageCounter, new Date(ts), dataToTbModified[tbname][0].values, this.instance);
|
||||
if(this.debug) console.log(this.sender + " DATA SEND TO TB ", this.index, tbname, arrayOfValuesToSend);
|
||||
//if(this.debug) console.log(this.sender + " DATA SEND TO TB ", this.index, tbname, arrayOfValuesToSend);
|
||||
|
||||
instance.send(this.index, dataToTbModified);
|
||||
}
|
||||
|
||||
getDiffTimestamp(key)
|
||||
{
|
||||
let seconds = 60*60;//1h
|
||||
//seconds = 1;//for testing
|
||||
let seconds = 30*60;//30 minutes
|
||||
|
||||
//TODO set different value for given key!!!
|
||||
//if(key == "status") seconds = 2*60*60;//2h
|
||||
|
|
@ -160,4 +159,4 @@ class DataToTbHandler
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = DataToTbHandler;
|
||||
module.exports = DataToTbHandler;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue