heyy every budy ... im trying to save 2 float number whom im receiving via xbee ... im using packet mrkers method {} () /// im able to save them in 2 variables but my code is very long so i was woundering if any one can help me minimizing it ... here is my code :

heyy its me again ... i tryied paulS code and it works perfect for the first marker /// but for some reson its not getting the secound number itryed several wayes to modify the code to accept 2 markere with no succes here is my last code it only print the first number :

The only issue here is that in the if(started && ended) block, you do not know whether the packet markers were { and } or ( and ). If this is important, add a char variable to store the start marker, and set it in the first if block (to inChar), and test that character in the if(started && ended) block.