This commit is contained in:
1 parent
9d33984c97
commit
5b0f9013aa
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -243,7 +243,7 @@ async fn main() -> std::io::Result<()> {
|
||||
&config.modbus_holding_register,
|
||||
&config.modbus_coils,
|
||||
value_maps,
|
||||
std::time::Duration::from_secs(2), // Poll-Intervall
|
||||
std::time::Duration::from_secs(10), // Poll-Intervall
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ pub fn start_mqtt_thread(config: Arc<Mutex<AppConfig>>, values: Arc<Mutex<Modbus
|
||||
if let Err(e) = client.subscribe(set_topic, QoS::AtLeastOnce) {
|
||||
eprintln!("MQTT Subscribe fehlgeschlagen: {}", e);
|
||||
}
|
||||
let leitsystem_state_topic = format!("{}/state", leitsystem_path.trim_end_matches('/'));
|
||||
let leitsystem_state_topic = format!("{}/active", leitsystem_path.trim_end_matches('/'));
|
||||
if let Err(e) = client.subscribe(leitsystem_state_topic.clone(), QoS::AtLeastOnce) {
|
||||
eprintln!("MQTT Subscribe Leitsystem fehlgeschlagen: {}", e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user