modbus polling Intervall vergrößert
Some checks failed
Build Docker Image (Podman) / build (push) Has been cancelled

This commit is contained in:
Eric Neuber 2026-05-26 22:46:35 +02:00
parent 9d33984c97
commit 5b0f9013aa
2 changed files with 2 additions and 2 deletions

View File

@ -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
);
}

View File

@ -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);
}