Transform into library
Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
10
examples/parse.rs
Normal file
10
examples/parse.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user