modbus polling Intervall vergrößert
Some checks failed
Build Docker Image (Podman) / build (push) Has been cancelled
Some checks failed
Build Docker Image (Podman) / build (push) Has been cancelled
This commit is contained in:
parent
9d33984c97
commit
5b0f9013aa
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user