// use linux_embedded_hal;
usepmsx003::*;fnmain(){// This example requires linux-embedded-hal which is not available on macOS
// Uncomment the following code when running on Linux:
/*
let path = std::env::args()
.skip(1)
.next()
.expect("Missing path to device");
println!("Connecting to: {}", path);
let device = linux_embedded_hal::Serial::open(std::path::Path::new(&path)).unwrap();
let mut sensor = PmsX003Sensor::new(device);
loop {
match sensor.read() {
Ok(frame) => println!("{:?}", frame),
Err(e) => println!("{:?}", e),
}
}
*/println!("This example is disabled on non-Linux platforms");}