Its OBD-II based on elm, code: Getting byte from elm, want to get output as int

Its OBD-II based on elm, code: Getting byte from elm327, want to get output as int as sensor values of cars.

void loop()
{
BuildINString="";
while(Serial.available() > 0) // data in byte ex. >04 05 0D
{
inData=0; // in byte
inChar=0;
inData = Serial.read();
inChar=char(inData);
BuildINString = BuildINString + inChar;
}
WorkingString = BuildINString.substring(6,8); // Out of "04 05 0D" & i've to use '0D' (Hex)
int A = strtol(WorkingString.c_str(),NULL,0);
}

could someone pls explain me about strtol() ??

what is : WorkingString.c_str() ?? is it converting hex to dec??

if not , how can convert byte to hex here.

my final aim to get decimal data in A.

You can use this ELM327 library (also installable through the Arduino IDE's Libraries Manager - search "ELMduino").

The library in action!

What specific data are you querying for?

Also, it is NOT a good idea to use "String" variables on Arduinos.

narendok:
what is : WorkingString.c_str() ?? is it converting hex to dec??

Here's the explanation: