From 01fd4586dd80cf943cf0e5ee6d581b122f408a82 Mon Sep 17 00:00:00 2001 From: Gabriele Baldoni Date: Wed, 27 Dec 2023 15:10:34 +0100 Subject: [PATCH] Updated instruction in readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d81196e..2b21789 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,10 @@ Code: ``` //Request MODE 1, PID 0C - RPM val pid = PID(ObdModes.MODE_01, "0C") +pid.formula = "(256A+B)/4" // Engine RPM formula https://en.wikipedia.org/wikiOBD-II_PIDs#Service_01 +pid.bytes="2" // Engine RPM bytes val command = OBDCommand(pid) -command.run(bluetoothSocket.inputStream, bluetoothSocket.outputStream) - +command.run(mBtSocket.inputStream, mBtSocket.outputStream) Log.d("PID", "${pid.description} : ${pid.calculatedResult}") Log.d("PID Formatted Result", command.formattedResult) ```