changes to more modern way
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user