Serial string filter.

Hey guys,

Does anybody know of working code that can filter and compare incoming serial.
For example if I have a device sending the arduino VANNFF.
I would like to be able for the arduino not to care what its seeing until it sees the "V"
store it all untill it sees a "."
Then I would compared the stored value. On a side note why isnt there a library to do this already. LOL.

Thanks.

I would have a loop that runs when serial.available and then not capture the data till in_char = 'V";

On a side note why isnt there a library to do this already. LOL.

Because no one can agree on what the start and end characters are, how to capture the data, and what to do with it after it is captured.

Read and ignore characters until you see a "V".
Read and save characters until you see a ".".

That's about it.


Rob