preset fix

This commit is contained in:
2018-04-06 23:38:08 +02:00
parent c503e31ee5
commit a5c629e331
8 changed files with 36 additions and 8 deletions

View File

@ -41,6 +41,10 @@ export abstract class AItem {
abstract processMessage(topic: string, payload: string) : void
startFunc() : void {
}
exportItem() : ExportType|null {
return null
}
@ -49,6 +53,6 @@ export abstract class AItem {
mqttHandler.register(this.subscribeTopics, (topic: string, payload: string) : void => {
// logger.info(`item ${this.itemId}: ${topic}, ${payload}`)
this.processMessage(topic, payload)
})
}, () => { this.startFunc() })
}
}