summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2016-12-19 17:20:57 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2016-12-19 17:20:57 +1100
commite14808fc32529033a615416f4cf35f6918750e60 (patch)
treecb1e5906f3d9180be12cfba4e953bcb059186d20 /libraries/OBD/OBD.h
parent6b932eb85c62aeb8ee3e8171de057a9d048f4047 (diff)
download2021-arduino-obd-e14808fc32529033a615416f4cf35f6918750e60.tar.gz
2021-arduino-obd-e14808fc32529033a615416f4cf35f6918750e60.tar.bz2
2021-arduino-obd-e14808fc32529033a615416f4cf35f6918750e60.zip
Added readDTC()
Diffstat (limited to 'libraries/OBD/OBD.h')
-rw-r--r--libraries/OBD/OBD.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h
index 4109533..b6793d7 100644
--- a/libraries/OBD/OBD.h
+++ b/libraries/OBD/OBD.h
@@ -122,6 +122,8 @@ public:
virtual bool setProtocol(OBD_PROTOCOLS h = PROTO_AUTO);
// send AT command and receive response
virtual byte sendCommand(const char* cmd, char* buf, byte bufsize, int timeout = OBD_TIMEOUT_LONG);
+ // read diagnostic trouble codes (return number of DTCs read)
+ virtual byte readDTC(uint16_t codes[], byte count = 1);
// clear diagnostic trouble code
virtual void clearDTC();
// get battery voltage (works without ECU)