EricSmekens / node-bluetooth-obd

Node package for communication with Bluetooth OBD connectors.
Other
262 stars 72 forks source link

Implement setProtocol/getProtocol methods to specify car communicatio… #21

Closed damoclark closed 7 years ago

damoclark commented 7 years ago

Hey Eric,

Would you consider this PR?

Added a setProtocol/getProtocol method so you can be specific about which car communications protocol to use. The ELM327 Bluetooth adapter I am using disconnects when I specify ATSP0. When I specify the particular version for my car, it all works fine.

Let me know if the PR requires any changes.

Damo.

As per ATSP section of the ELM USB Commands Document http://www.obdtester.com/elm-usb-commands

EricSmekens commented 7 years ago

Pooh, will look into it, but got no way to test this at this moment.