You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I actually have two questions here. First, how can I get the state of the OBD into a usable format? I have tried casting and comparing, as shown below, with little sucess:
boolean isConnected = obd.getState() == OBD_CONNECTED;
int state = (int) obd.getState();
Also, what is the point of making a function that returns a useless variable type? There are no built in functions to these variables that provide any utility to the user, and as far as I can see, they are fairly inconvenient (or even impossible) to get in a format that can interact with other code.
The text was updated successfully, but these errors were encountered:
In the code there is the following function to fetch the state of the OBD:
These states also have there own variable type defined in the library:
I actually have two questions here. First, how can I get the state of the OBD into a usable format? I have tried casting and comparing, as shown below, with little sucess:
Also, what is the point of making a function that returns a useless variable type? There are no built in functions to these variables that provide any utility to the user, and as far as I can see, they are fairly inconvenient (or even impossible) to get in a format that can interact with other code.
The text was updated successfully, but these errors were encountered: