Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created April 11, 2019 17:27
Show Gist options
  • Save suru-dissanaike/0955eb1d59f4c56d161b1c3deb064d52 to your computer and use it in GitHub Desktop.
Save suru-dissanaike/0955eb1d59f4c56d161b1c3deb064d52 to your computer and use it in GitHub Desktop.
import obd
connection = obd.OBD("/dev/rfcomm0")
cmd = obd.commands.RPM
response = connection.query(cmd)
print(response.value)
print(connection.protocol_name())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment