From e14808fc32529033a615416f4cf35f6918750e60 Mon Sep 17 00:00:00 2001 From: Stanley Huang <stanleyhuangyc@gmail.com> Date: Mon, 19 Dec 2016 17:20:57 +1100 Subject: Added readDTC() --- libraries/OBD/OBD.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libraries/OBD/OBD.h') 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) -- cgit v1.2.3