Use traits for basic reader
This commit is contained in:
parent
4d08a680d1
commit
cd82a02efb
4 changed files with 116 additions and 96 deletions
|
@ -2,7 +2,7 @@ mod obd2;
|
|||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
let mut device = obd2::Obd2::default();
|
||||
let mut device: obd2::Obd2<obd2::Elm327> = obd2::Obd2::default();
|
||||
|
||||
println!("VIN: {:?}", device.get_vin());
|
||||
println!("DTC Info: {:#?}", device.get_dtc_info());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue