Hi,
Could you offer an example to show how to call the getVersion() method?
With my very limited understanding of C/C++ I have tried this:
String rev;
Elm.getVersion(rev);
Serial1.println(rev); //Serial1 is not the UART talking to the STN1110
Which compiles and runs but does not return the correct string (it returns "OK" instead of "ELM327...").
My problem is that I do not understand the "(String& rev)" in the method signature.
Best regards, Martin
Hi, Could you offer an example to show how to call the getVersion() method? With my very limited understanding of C/C++ I have tried this:
Which compiles and runs but does not return the correct string (it returns "OK" instead of "ELM327..."). My problem is that I do not understand the "(String& rev)" in the method signature. Best regards, Martin