Cut out part of the data shown in serial monitor

Hello everyone,
I’m new member here and also a joiner in programming
i try to extract information from my vehicle using OBD-II cable adapter. I try simple code to read the RPM and successfully got it and print it in serial monitor but i face a simple problem. Serial monitor display the PID-Code + current value of RPM as shown below:

010C849 010C: refer to RPM-PID used and 849: current value of RPM

so can i cutout the HEX number from the result and just display the value of RPM such as (849) as shown in the attached image

i used the following code:

#include <OBD2UART.h>
COBD obd;
void setup()
{
  pinMode(13, OUTPUT);
  obd.begin();
  while (!obd.init());
}
void loop()
{
  int value;
  if (obd.readPID(PID_RPM, value)) {
        Serial.println(value);
        delay(1000);
  }
}

Is this the library you are attempting to use for <OBD2UART.h> ? :
https://github.com/stanleyhuangyc/ArduinoOBD/tree/master/libraries/OBD2UART

There is not a shred of documentation for it at that link. Have you found any ?

Edit

What board are you using ? That looks like a 32 bit int. If the format is consistent, you could mask out the first 16bits.
If you comment out the statement: Serial.println(value) ;
does the first 2 bytes (010C) still get printed to the console ?

Thank you for your reply my friend,
Actually i used the same library that you mention with OBD-II cable connected to my vehicle using Arduino Uno.
the result shown in the attached file explain that it is still showing the 2 Bytes even when i used
Serial.println(value);
so can i use something to mask the first byte as you suggest.

I guess that the hex codes are generated by the library and printed directly to the console.

Try replacing this:

if (obd.readPID(PID_RPM, value)) {
        Serial.println(value);
        delay(1000);
}

with this:

if (obd.readPID(PID_RPM, value)) {
   Serial.println();
   Serial.print("value=") ;
   Serial.println(value);
   delay(1000);
}

Then it may be clear how to separate the results-

7hussein_123:
Thank you for your reply my friend,
Actually i used the same library that you mention with OBD-II cable connected to my vehicle using Arduino Uno.
the result shown in the attached file explain that it is still showing the 2 Bytes even when i used
Serial.println(value);
so can i use something to mask the first byte as you suggest.

If you are using an Uno, an int is not 32 bits so I don't see how you are getting that value. There is nothing in the library that prints unless you edit the header file and uncomment the DEBUG statement.