gps_parser/examples/parse.rs
Thomas Klaehn 4e601d553c Transform into library
Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
2025-01-15 10:16:54 +01:00

11 lines
212 B
Rust

use gps_parser;
fn main() {
let mut gps_parser = gps_parser::GpsParser::new("/dev/ttyACM0");
loop {
if let Ok(res) = gps_parser.parse_nmea() {
println!("{:?}",res);
}
}
}