summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-04-17 20:48:44 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2014-04-17 20:48:44 +0800
commite72f6dd48477170354dc3da58cc95b13f1b8e2a5 (patch)
treecab5dc98e34dbd115b03e73c53a25be8e0334537 /libraries/OBD/OBD.h
parent9a0730a5d9422441d3cfb168fb35772232a4e385 (diff)
download2021-arduino-obd-e72f6dd48477170354dc3da58cc95b13f1b8e2a5.tar.gz
2021-arduino-obd-e72f6dd48477170354dc3da58cc95b13f1b8e2a5.tar.bz2
2021-arduino-obd-e72f6dd48477170354dc3da58cc95b13f1b8e2a5.zip
Update OBD library
Diffstat (limited to 'libraries/OBD/OBD.h')
-rw-r--r--libraries/OBD/OBD.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h
index 2718eb2..dcf4890 100644
--- a/libraries/OBD/OBD.h
+++ b/libraries/OBD/OBD.h
@@ -1,7 +1,7 @@
/*************************************************************************
* Arduino Library for OBD-II UART/I2C Adapter
* Distributed under GPL v2.0
-* Visit http://freematics.com for more information
+* Visit http://arduinodev.com for more information
* (C)2012-2014 Stanley Huang <stanleyhuangyc@gmail.com>
*************************************************************************/
@@ -58,7 +58,11 @@ class COBD
{
public:
COBD():dataMode(1),errors(0),m_state(OBD_DISCONNECTED) {}
- virtual void begin();
+ /*
+ Serial baudrate is only adjustable for Arduino OBD-II Adapters V2
+ Check out http://arduinodev.com/hardware/obd-kit/
+ */
+ virtual void begin(unsigned long baudrate = 0);
virtual bool init(byte protocol = 0);
virtual bool read(byte pid, int& result);
virtual void sleep();
@@ -75,7 +79,7 @@ public:
byte vin[17];
protected:
virtual char* getResponse(byte& pid, char* buffer);
- virtual byte receive(char* buffer, int timeout = OBD_TIMEOUT_SHORT);
+ virtual byte receive(char* buffer = 0, int timeout = OBD_TIMEOUT_SHORT);
virtual bool available();
virtual char read();
virtual void write(const char* s);