Added filtering and attribute flags, improved bes_wifi by adding ssids

and tags to the equasion
This commit is contained in:
2026-11-17 15:04:56 +02:00
parent a09c4ba2cc
commit 2306d5f586
11 changed files with 213 additions and 73 deletions

View File

@@ -50,7 +50,18 @@ impl MtCommander {
}))
.await;
let res_map: HashMap<_, _> = results.into_iter().collect();
let res_map: HashMap<_, _> = results
.into_iter()
.filter_map(|(h, res)| {
match &res {
Ok(_) => Some((h, res)),
Err(e) => {
log::error!("(Almost Fatal) Error running command: {e}");
None
}
}
})
.collect();
Ok(res_map)
}
}
@@ -197,7 +208,7 @@ impl MtCommanderInternal {
other => println!("{other:?}"),
}
}
log::info!("({addr}) Command finished, read {size} bytes");
log::info!("({addr}) Command `{command}` finished, read {size} bytes");
Ok(res)
}
}