Skip to content

Commit

Permalink
update version, add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
barnhill committed Oct 12, 2022
1 parent df33563 commit f2209b6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ This project offers a developer friendly interface to communicate with ELM 327 O

### Usage ###

To use:
Add Dependency:
```Gradle
implementation 'com.pnuema.android:obd:1.1.0'
implementation 'com.pnuema.android:obd:1.2.0'
```

### Contribution guidelines ###
Code:
```
val pid = PID(ObdModes.MODE_01, "01")
val command = OBDCommand(pid)
command.run(bluetoothSocket.inputStream, bluetoothSocket.outputStream)
TODO
Log.d("PID", "${pid.description} : ${pid.calculatedResult}")
Log.d("PID Formatted Result", command.formattedResult)
```

### Who do I talk to? ###

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ org.gradle.caching=true
android.disableAutomaticComponentCreation=true

GROUP=com.pnuema.android
VERSION_NAME=1.1.0
VERSION_NAME=1.2.0

POM_NAME=Android OBD Library
POM_ARTIFACT_ID=obd
Expand Down
2 changes: 1 addition & 1 deletion obd/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'kotlinx-serialization'
apply plugin: 'org.jetbrains.dokka'
apply plugin: "com.vanniktech.maven.publish"

version = "1.1.0"
version = "1.2.0"
group = "com.pnuema.android"

ext {
Expand Down
4 changes: 4 additions & 0 deletions obd/src/main/java/com/pnuema/android/obd/models/PID.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ data class PID (
var retrievalTime: Long = 0
var isPersistent: Boolean = false

constructor(mode: ObdModes, pid: String = ""): this() {
setModeAndPID(mode, pid)
}

/**
* Sets the mode of the PID
*
Expand Down

0 comments on commit f2209b6

Please sign in to comment.