changes to more modern way

This commit is contained in:
Priec
2026-01-18 10:13:21 +01:00
parent 6fe77a1286
commit 5c12591524
3 changed files with 196 additions and 19 deletions

View File

@@ -150,12 +150,6 @@ async fn run_one_session(
}
// Operational loop
let default_topic = "esp32/topic";
match client.subscribe_to_topic(default_topic).await {
Ok(_) => info!("Subscribed to '{}'", default_topic),
Err(e) => info!("Default subscribe failed: {:?}", e),
};
loop {
let net_or_ping = select(client.receive_message(), Timer::after(PING_PERIOD));