heartbeat stuff

This commit is contained in:
Wolfgang Hottgenroth
2018-05-16 10:32:13 +02:00
parent 50b0b85f4f
commit 7e78a5724b
3 changed files with 22 additions and 1 deletions

View File

@ -496,6 +496,18 @@ testScene.start()
// ----------------------------------------------------------------------------------------------------------
// heartbeat
let heartbeatCounter = 0
let heartbeatTimer = setInterval(() => {
heartbeatCounter += 1
mqttHandler.send(config.dict.heartbeatTopic, `${heartbeatCounter}`)
}, config.dict.heartbeatInterval)
// ----------------------------------------------------------------------------------------------------------
// Homekit export
let homekitObject : { [key:string]:{} } = {}