Skip to content

Repository files navigation

Java OBD API

An OBD-II API written in Java. Based on obd-java-api.

Quickstart

Android

Just include it into the build.gradle file:

 dependencies {
...
// Java OBD API
implementation 'com.github.eltonvs:java-obd-api:0.0.1'
}

Maven

You only need to include it into your pom.xml file:

 <dependency>
<groupId>com.github.eltonvs</groupId>
<artifactId>java-obd-api</artifactId>
<version>0.0.1</version>
</dependency>

Sample Usage

After pairing and establishing a Bluetooth connection with your OBD device.

// retrieve Bluetooth socketsocket = ...; // specific to the VM you're using (Java, Android, etc.)// Group many obd commands into a single command ()ObdCommandGroupobdCommands = newObdCommandGroup();
obdCommands.add(newEchoOffCommand());
obdCommands.add(newLineFeedOffCommand());
obdCommands.add(newTimeoutCommand(timeout));
obdCommands.add(newSelectProtocolCommand(protocol));
// Run all commands at onceobdCommands.run(socket.getInputStream(), socket.getOutputStream());

Contributing

We're open for contributions!

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache 2.0 - see the LICENSE file for details

Acknowledgments

About

🚘 An OBD-II API written in Java

Topics

Resources

Stars

43 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages