Hello I am new to the forum,
I liked to separate the variables coming from opencv via serial after reading the received data, I verify that they are in the following form :
ySetPoint#150#yBallTrack#120
I need separate all variables each variable to be able to treat each one the way I want.
Please read 'how to use this forum - please read' then go back and modify your original post in line with the instructions, in particular:
Why have you quoted yourself?
Post your code in the forum window in code tags.
Don't post a screen shot, copy and paste the text and put in code tags if it is code or from the serial monitor.
You can copy the output i the Serial monitor by selecting it using the mouse and putting it into the clipboard using Ctrl/C. Paste it into a post here using code tags when you do. Then it is easier to deal with than a screen shot
To separate the data into variables have a look at the strtok() function strtok() function
With strtok() or sscanf() or just code without functions. Is there something at the end ? A Carriage Return or LineFeed ?
I ask that, because I don't like it at all.
Suppose that "ySetPoint#150#yBallTrack#12" is received, then how can I tell that a zero will follow for "...120".