stanleyhuangyc / ArduinoOBD

OBD-II library and sketches for Arduino
http://freematics.com
986 stars 518 forks source link

Can't compile obd_uart_test.ino in Mac #41

Open drabudawood opened 7 years ago

drabudawood commented 7 years ago

Arduino: 1.6.12 (Mac OS X: Yosemite version 10.10.5), Board: "Arduino/Genuino Uno"

The obd_uart_test.ino sketch keeps complaining that 'class COBD' has no member named 'version' and doesn't recognise the memory related commands.

drabudawood commented 7 years ago

For those who are interested in Freematics OBD-II UART Adapter V2 I managed to solve the problem in the code and run it in Mac. I just ignored the memory and version stuff and fixed some data types. It might be helpful for you.

I tested it and it worked on my car. I attached the new code as a library with similar format to the original.

Note that the following files has been changed: obd_uart_test.ino, OBD2UART.h, and OBD2UART.cpp

OBD2UART.zip

Best,

DRABUDAWOOD