how to use input

hey guys how to use an input from a device and set the input later in the code as an int and perform if staement the input i want to use is rssi value from hc -05

AT+INQM=1,9,48
AT+INQ
+INQ:1234:56:0,1F1F,FFC0

i got this code from here http://electronics.stackexchange.com/questions/98160/how-to-get-rssi-of-bluetooth-specfically-hc-05/ pls note this is a variable input. thaks in advance :)

and set the input later in the code as an int

Here's a clue.

AT+INQM=1,9,48 AT+INQ +INQ:1234:56:0,1F1F,FFC0

is NOT an int.

If you want to parse that data, you must first tell us how that data is stored. Where IS your code?

+INQ:1234:56:0,1F1F,FFC0

Is this the string that is returned by the HC05?

Assuming you are saving that into a char array you can parse the array to pick out the parts you want. There is a parse example in serial input basics.

As usual, you will get much more help if you post your code.

...R