1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00
trezor-firmware/rust/trezor-client/examples/find.rs
2023-07-11 13:50:33 +02:00

12 lines
324 B
Rust

fn main() {
let trezors = trezor_client::find_devices(false);
println!("Found {} devices: ", trezors.len());
for t in trezors.into_iter() {
println!("- {}", t);
{
let mut client = t.connect().unwrap();
println!("{:?}", client.initialize(None).unwrap());
}
}
}