Transform into library

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn
2025-01-15 10:16:54 +01:00
parent 95fdc03e2b
commit 4e601d553c
6 changed files with 461 additions and 139 deletions

10
examples/parse.rs Normal file
View File

@@ -0,0 +1,10 @@
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);
}
}
}