Skip to content

v-ivanyshyn/Arduino-OBD2-Async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-OBD2-Async

Based on stanleyhuangyc/ArduinoOBD, with asynchronous data requesting.

There are new functions:

    void asyncRequest(byte pid); // send request for specific PID
    bool asyncInProgress();      // check that we already are waiting for response
    bool asyncGet(int& result);  // try to get response into 'result'

Typical usage:

    if (!obd.asyncInProgress())
        obd.asyncRequest(PID_RPM);
    int response = 0;
    if (obd.asyncGet(response))
        Serial.println(response);

About

Arduino OBD library with asynchronous data requesting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages