I am reading in an ASCII string through Bluetooth. I get the string. I need to be able to separate out info. The string format is as follows;

"t=00 b=000 r=00 st=00000 sp=00000"

I want to be able to put each 'number' into a variable. For example I receive

"t=12 b=222 r=12 st=05000 sp=10000"

then I want to take t=12 and store '12' in variable 'Threshold', b=222 will go into 'Buffer', r=12 into 'Retard', st goes to 'Start' and sp will be moved into 'Stop'

I was thinking something about doing something like

SERIN 1,N2400,["t="],Threshold
SERIN 1,N2400,["b="],Buffer
SERIN 1,N2400,["r="],Retard
SERIN 1,N2400,["st="],Start
SERIN 1,N2400,["sp="],Stop

How will it know to only store 12 in 'Threshold' after the first line of code and not store everything after t= into 'Threshold?