preset fix
This commit is contained in:
@ -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() })
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user