thread names added
This commit is contained in:
parent
695594fd1c
commit
72f9d97402
@ -11,6 +11,7 @@ LOOP_SLICE = 0.1 # seconds
|
||||
class MqttPublish(AbstractMqttPublisher):
|
||||
def __init__(self, config, stats, queue):
|
||||
super().__init__(config)
|
||||
self.name = 'mqtt'
|
||||
self.queue = queue
|
||||
self.stats = stats
|
||||
self.topicPre = self.config["publishTopicPrefix"]
|
||||
|
@ -18,6 +18,7 @@ class StatisticsCollector(threading.Thread):
|
||||
def __init__(self, config, queue):
|
||||
super().__init__()
|
||||
|
||||
self.name = 'stats'
|
||||
self.config = config['stats']
|
||||
self.period = self.config['period']
|
||||
self.topic = self.config['topic']
|
||||
|
Loading…
x
Reference in New Issue
Block a user