introduce interfaces for state/feedback topics
This commit is contained in:
@ -3,6 +3,15 @@ import { mqttHandler } from './MqttDispatcher'
|
||||
import { ExportType } from './Export'
|
||||
|
||||
|
||||
|
||||
export interface HasStateTopic {
|
||||
getStateTopic() : string
|
||||
}
|
||||
|
||||
export interface HasStateAndFeedbackTopic extends HasStateTopic {
|
||||
getStateFeedbackTopic() : string
|
||||
}
|
||||
|
||||
export abstract class AItem {
|
||||
protected topicFirstPart: string
|
||||
protected itemId: string
|
||||
|
Reference in New Issue
Block a user