Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d9b1000665
|
|||
|
7794fabaf3
|
|||
|
6e6ff4c229
|
@@ -1,6 +1,6 @@
|
||||
global:
|
||||
scan_interval: 0.25
|
||||
log_level: DEBUG
|
||||
log_level: INFO
|
||||
|
||||
mqtt:
|
||||
broker: emqx01-anonymous-cluster-internal.broker.svc.cluster.local
|
||||
|
||||
@@ -69,5 +69,5 @@ class AbstractMqttPublisher(threading.Thread):
|
||||
logger.debug(f"mqtt message unchanged, not publishing: {topic} -> {payload}")
|
||||
return
|
||||
self.cache[topic] = payload
|
||||
self.client.publish(topic, payload)
|
||||
self.client.publish(topic, payload, retain=True)
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class ModbusConfig(BaseModel):
|
||||
|
||||
class GlobalConfig(BaseModel):
|
||||
"""Global settings"""
|
||||
scan_interval: int
|
||||
scan_interval: float
|
||||
log_level: str
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user