Java OBD API

A Java OBD API

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.github.eltonvs
Идентификатор

Идентификатор

java-obd-api
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

Java OBD API
A Java OBD API
Ссылка на сайт

Ссылка на сайт

https://github.com/eltonvs/java-obd-api
Система контроля версий

Система контроля версий

https://github.com/eltonvs/java-obd-api

Скачать java-obd-api

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.eltonvs/java-obd-api/ -->
<dependency>
    <groupId>com.github.eltonvs</groupId>
    <artifactId>java-obd-api</artifactId>
    <version>0.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.eltonvs/java-obd-api/
implementation 'com.github.eltonvs:java-obd-api:0.0.1'
// https://jarcasting.com/artifacts/com.github.eltonvs/java-obd-api/
implementation ("com.github.eltonvs:java-obd-api:0.0.1")
'com.github.eltonvs:java-obd-api:aar:0.0.1'
<dependency org="com.github.eltonvs" name="java-obd-api" rev="0.0.1">
  <artifact name="java-obd-api" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.eltonvs', module='java-obd-api', version='0.0.1')
)
libraryDependencies += "com.github.eltonvs" % "java-obd-api" % "0.0.1"
[com.github.eltonvs/java-obd-api "0.0.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.android.support » appcompat-v7 jar 27.1.1

Модули Проекта

Данный проект не имеет модулей.

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 socket
socket = ...; // specific to the VM you're using (Java, Android, etc.)

// Group many obd commands into a single command ()
ObdCommandGroup obdCommands = new ObdCommandGroup();
obdCommands.add(new EchoOffCommand());
obdCommands.add(new LineFeedOffCommand());
obdCommands.add(new TimeoutCommand(timeout));
obdCommands.add(new SelectProtocolCommand(protocol));

// Run all commands at once
obdCommands.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

Версии библиотеки

Версия
0.0.1