heartbeat stuff
This commit is contained in:
12
src/main.ts
12
src/main.ts
@ -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]:{} } = {}
|
||||
|
Reference in New Issue
Block a user